Flutter Engine
The Flutter Engine
|
#include <ResourceKey.h>
Classes | |
class | Builder |
Public Types | |
typedef uint32_t | Domain |
Public Member Functions | |
UniqueKey () | |
UniqueKey (const UniqueKey &that) | |
UniqueKey & | operator= (const UniqueKey &that) |
bool | operator== (const UniqueKey &that) const |
bool | operator!= (const UniqueKey &that) const |
void | setCustomData (sk_sp< SkData > data) |
SkData * | getCustomData () const |
sk_sp< SkData > | refCustomData () const |
const char * | tag () const |
const uint32_t * | data () const |
Public Member Functions inherited from skgpu::ResourceKey | |
uint32_t | hash () const |
size_t | size () const |
void | reset () |
bool | isValid () const |
Static Public Member Functions | |
static Domain | GenerateDomain () |
Additional Inherited Members | |
Protected Member Functions inherited from skgpu::ResourceKey | |
ResourceKey () | |
bool | operator== (const ResourceKey &that) const |
ResourceKey & | operator= (const ResourceKey &that) |
uint32_t | domain () const |
size_t | dataSize () const |
const uint32_t * | data () const |
Static Protected Attributes inherited from skgpu::ResourceKey | |
static const uint32_t | kInvalidDomain = 0 |
A key that allows for exclusive use of a resource for a use case (AKA "domain"). There are three rules governing the use of unique keys:
Unique keys preempt scratch keys. While a resource has a unique key it is inaccessible via its scratch key. It can become scratch again if the unique key is removed.
Definition at line 241 of file ResourceKey.h.
typedef uint32_t skgpu::UniqueKey::Domain |
Definition at line 243 of file ResourceKey.h.
|
inline |
Creates an invalid unique key. It must be initialized using a Builder object before use.
Definition at line 248 of file ResourceKey.h.
|
inline |
Definition at line 250 of file ResourceKey.h.
|
inline |
Definition at line 268 of file ResourceKey.h.
|
static |
Generate a Domain for unique keys.
Definition at line 27 of file ResourceKey.cpp.
|
inline |
Definition at line 263 of file ResourceKey.h.
|
inline |
Definition at line 260 of file ResourceKey.h.
Definition at line 252 of file ResourceKey.h.
|
inline |
Definition at line 259 of file ResourceKey.h.
Definition at line 264 of file ResourceKey.h.
Definition at line 262 of file ResourceKey.h.
|
inline |
Definition at line 266 of file ResourceKey.h.