Base class for all GrGpuResource cache keys.
More...
#include <GrResourceKey.h>
|
uint32_t | hash () const |
|
size_t | size () const |
|
|
void | reset () |
| Reset to an invalid key. More...
|
|
bool | operator== (const GrResourceKey &that) const |
|
GrResourceKey & | operator= (const GrResourceKey &that) |
|
bool | isValid () const |
|
uint32_t | domain () const |
|
size_t | dataSize () const |
| size of the key data, excluding meta-data (hash, domain, etc). More...
|
|
const uint32_t * | data () const |
| ptr to the key data, excluding meta-data (hash, domain, etc). More...
|
|
|
static const uint32_t | kInvalidDomain = 0 |
|
|
enum | MetaDataIdx { kHash_MetaDataIdx,
kDomainAndSize_MetaDataIdx,
kLastMetaDataIdx = kDomainAndSize_MetaDataIdx
} |
|
|
size_t | internalSize () const |
|
void | validate () const |
|
|
SkAutoSTMalloc< kMetaDataCnt+7,
uint32_t > | fKey |
|
|
static const uint32_t | kMetaDataCnt = kLastMetaDataIdx + 1 |
|
Base class for all GrGpuResource cache keys.
There are two types of cache keys. Refer to the comments for each key type below.
const uint32_t* GrResourceKey::data |
( |
| ) |
const |
|
inlineprotected |
ptr to the key data, excluding meta-data (hash, domain, etc).
size_t GrResourceKey::dataSize |
( |
| ) |
const |
|
inlineprotected |
size of the key data, excluding meta-data (hash, domain, etc).
void GrResourceKey::reset |
( |
| ) |
|
|
inlineprotected |
The documentation for this class was generated from the following file: