8 #ifndef SkColorTable_DEFINED
9 #define SkColorTable_DEFINED
13 #include "include/private/base/SkAPI.h"
30 return Make(table, table, table, table);
36 const uint8_t tableR[256],
37 const uint8_t tableG[256],
38 const uint8_t tableB[256]);
41 const uint8_t*
alphaTable()
const {
return fTable.getAddr8(0, 0); }
42 const uint8_t*
redTable()
const {
return fTable.getAddr8(0, 1); }
43 const uint8_t*
greenTable()
const {
return fTable.getAddr8(0, 2); }
44 const uint8_t*
blueTable()
const {
return fTable.getAddr8(0, 3); }
46 void flatten(SkWriteBuffer& buffer)
const;
51 friend class SkTableColorFilter;
57 const SkBitmap& bitmap()
const {
return fTable; }
SkBitmap describes a two-dimensional raster pixel array.
Definition: SkBitmap.h:59
SkColorTable holds the lookup tables for each channel (ARGB) used to define the filter behavior of Sk...
Definition: SkColorTable.h:25
static sk_sp< SkColorTable > Deserialize(SkReadBuffer &buffer)
void flatten(SkWriteBuffer &buffer) const
const uint8_t * blueTable() const
Definition: SkColorTable.h:44
static sk_sp< SkColorTable > Make(const uint8_t table[256])
Definition: SkColorTable.h:29
static sk_sp< SkColorTable > Make(const uint8_t tableA[256], const uint8_t tableR[256], const uint8_t tableG[256], const uint8_t tableB[256])
const uint8_t * greenTable() const
Definition: SkColorTable.h:43
const uint8_t * redTable() const
Definition: SkColorTable.h:42
const uint8_t * alphaTable() const
Definition: SkColorTable.h:41
Definition: SkRefCnt.h:119
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
sk_sp< SkDrawLooper > SK_API Make(SkColor4f color, SkColorSpace *cs, SkScalar sigma, SkScalar dx, SkScalar dy)