Lines Matching refs:domain
73 bool isValid() const { return kInvalidDomain != this->domain(); }
75 uint32_t domain() const { return fKey[kDomainAndSize_MetaDataIdx] & 0xffff; }
77 /** size of the key data, excluding meta-data (hash, domain, etc). */
80 /** ptr to the key data, excluding meta-data (hash, domain, etc). */
92 SkDebugf("domain: %d ", this->domain());
105 Builder(GrResourceKey* key, uint32_t domain, int data32Count) : fKey(key) {
107 SkASSERT(domain != kInvalidDomain);
111 SkASSERT(SkToU16(domain) == domain);
112 key->fKey[kDomainAndSize_MetaDataIdx] = domain | (size << 16);
142 // The key domain and size are packed into a single uint32_t.
207 ResourceType resourceType() const { return this->domain(); }
225 * A key that allows for exclusive use of a resource for a use case (AKA "domain"). There are three
232 * The code path creates a domain which it sets on its keys. This guarantees that there are no
233 * cross-domain collisions.
243 typedef uint32_t Domain;
244 /** Generate a Domain for unique keys. */
245 static Domain GenerateDomain();
281 Builder(GrUniqueKey* key, Domain type, int data32Count, const char* tag = nullptr)
287 Builder(GrUniqueKey* key, const GrUniqueKey& innerKey, Domain domain, int extraData32Cnt,
289 : INHERITED::Builder(key, domain, Data32CntForInnerKey(innerKey) + extraData32Cnt) {
294 (*innerKeyData++) = innerKey.domain();
301 // key data + domain