Lines Matching refs:GrResourceKey
14 #include "GrResourceKey.h"
26 GrResourceKey key;
34 const GrResourceKey& key() const { return fKey; }
36 static const GrResourceKey& GetKey(const GrResourceCacheEntry& e) { return e.key(); }
37 static uint32_t Hash(const GrResourceKey& key) { return key.getHash(); }
53 const GrResourceKey& key,
58 GrResourceKey fKey;
75 * These have a corresponding GrResourceKey, built from 128bits identifying the
76 * resource. Multiple resources can map to same GrResourceKey.
83 * For fast searches, we maintain a hash map based on the GrResourceKey.
162 GrGpuResource* find(const GrResourceKey& key,
176 void addResource(const GrResourceKey& key,
184 bool hasKey(const GrResourceKey& key) const { return SkToBool(fCache.find(key)); }
250 SkTMultiMap<GrResourceCacheEntry, GrResourceKey> fCache;