Home | History | Annotate | Download | only in gpu

Lines Matching defs:Domain

474  * the domain and the key. Domains simply allow multiple clients to use 0-based indices as their
475 * cache key without colliding. The key uniquely identifies a GrResource within the domain.
476 * Users of the cache must obtain a domain via GenerateDomain().
480 typedef uint8_t Domain;
496 * Initialize the cache ID to a domain and key.
498 GrCacheID(Domain domain, const Key& key) {
499 GrAssert(kInvalid_Domain != domain);
500 this->reset(domain, key);
503 void reset(Domain domain, const Key& key) {
504 fDomain = domain;
508 /** Has this been initialized to a valid domain */
512 Domain getDomain() const { GrAssert(this->isValid()); return fDomain; }
514 /** Creates a new unique ID domain. */
515 static Domain GenerateDomain();
519 Domain fDomain;
521 static const Domain kInvalid_Domain = 0;