SkColorTable holds the lookup tables for each channel (ARGB) used to define the filter behavior of SkColorFilters::Table
, and provides a way to share the table data between client code and the returned SkColorFilter.
More...
#include <SkColorTable.h>
SkColorTable holds the lookup tables for each channel (ARGB) used to define the filter behavior of SkColorFilters::Table
, and provides a way to share the table data between client code and the returned SkColorFilter.
Once created, an SkColorTable is immutable.
◆ alphaTable()
const uint8_t* SkColorTable::alphaTable |
( |
| ) |
const |
|
inline |
◆ blueTable()
const uint8_t* SkColorTable::blueTable |
( |
| ) |
const |
|
inline |
◆ Deserialize()
◆ flatten()
void SkColorTable::flatten |
( |
SkWriteBuffer & |
buffer | ) |
const |
◆ greenTable()
const uint8_t* SkColorTable::greenTable |
( |
| ) |
const |
|
inline |
◆ Make() [1/2]
◆ Make() [2/2]
static sk_sp<SkColorTable> SkColorTable::Make |
( |
const uint8_t |
tableA[256], |
|
|
const uint8_t |
tableR[256], |
|
|
const uint8_t |
tableG[256], |
|
|
const uint8_t |
tableB[256] |
|
) |
| |
|
static |
◆ redTable()
const uint8_t* SkColorTable::redTable |
( |
| ) |
const |
|
inline |
◆ ref()
void SkRefCntBase::ref |
( |
| ) |
const |
|
inlineinherited |
Increment the reference count.
Must be balanced by a call to unref().
◆ unique()
bool SkRefCntBase::unique |
( |
| ) |
const |
|
inlineinherited |
May return true if the caller is the only owner.
Ensures that all previous owner's actions are complete.
◆ unref()
void SkRefCntBase::unref |
( |
| ) |
const |
|
inlineinherited |
Decrement the reference count.
If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.
◆ SkTableColorFilter
friend class SkTableColorFilter |
|
friend |
The documentation for this class was generated from the following file: