19 int32_t
type = nextType.fetch_add(1, std::memory_order_relaxed);
20 if (
type > SkTo<int32_t>(UINT16_MAX)) {
30 int32_t
domain = nextDomain.fetch_add(1, std::memory_order_relaxed);
31 if (
domain > SkTo<int32_t>(UINT16_MAX)) {
32 SK_ABORT(
"Too many skgpu::UniqueKey Domains");
#define SK_ABORT(message,...)
static const uint32_t kInvalidDomain
static ResourceType GenerateResourceType()
static Domain GenerateDomain()
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)
uint32_t ResourceKeyHash(const uint32_t *data, size_t size)