Lines Matching defs:domain
62 Builder(GrResourceKey* key, uint32_t domain, int data32Count) : fKey(key) {
64 SkASSERT(domain != kInvalidDomain);
68 SkASSERT(SkToU16(domain) == domain);
69 key->fKey[kDomainAndSize_MetaDataIdx] = domain | (size << 16);
110 bool isValid() const { return kInvalidDomain != this->domain(); }
112 uint32_t domain() const { return fKey[kDomainAndSize_MetaDataIdx] & 0xffff; }
114 /** size of the key data, excluding meta-data (hash, domain, etc). */
117 /** ptr to the key data, excluding meta-data (hash, domain, etc). */
129 SkDebugf("domain: %d ", this->domain());
143 // The key domain and size are packed into a single uint32_t.
208 ResourceType resourceType() const { return this->domain(); }
226 * A key that allows for exclusive use of a resource for a use case (AKA "domain"). There are three
233 * The code path creates a domain which it sets on its keys. This guarantees that there are no
234 * cross-domain collisions.
289 Builder(GrUniqueKey* key, const GrUniqueKey& innerKey, Domain domain, int extraData32Cnt,
291 : INHERITED::Builder(key, domain, Data32CntForInnerKey(innerKey) + extraData32Cnt) {
296 (*innerKeyData++) = innerKey.domain();
303 // key data + domain