Lines Matching refs:GrResourceKey
25 class GrResourceKey {
43 GrResourceKey(const GrCacheID& id, ResourceType type, ResourceFlags flags) {
47 GrResourceKey(const GrResourceKey& src) {
51 GrResourceKey() {
79 bool operator==(const GrResourceKey& other) const { return fKey == other.fKey; }
114 GrResourceKey key;
122 const GrResourceKey& key() const { return fKey; }
124 static const GrResourceKey& GetKey(const GrResourceCacheEntry& e) { return e.key(); }
125 static uint32_t Hash(const GrResourceKey& key) { return key.getHash(); }
141 const GrResourceKey& key,
146 GrResourceKey fKey;
162 * These have a corresponding GrResourceKey, built from 128bits identifying the
163 * resource. Multiple resources can map to same GrResourceKey.
170 * For fast searches, we maintain a hash map based on the GrResourceKey.
249 GrCacheable* find(const GrResourceKey& key,
263 void addResource(const GrResourceKey& key,
271 bool hasKey(const GrResourceKey& key) const { return NULL != fCache.find(key); }
337 GrTMultiMap<GrResourceCacheEntry, GrResourceKey> fCache;