Searched refs:GrScratchKey (Results 1 – 10 of 10) sorted by relevance
/external/skia/include/gpu/ |
D | GrResourceKey.h | 162 class GrScratchKey : public GrResourceKey { 174 GrScratchKey() {} in GrScratchKey() function 176 GrScratchKey(const GrScratchKey& that) { *this = that; } in GrScratchKey() function 185 GrScratchKey& operator=(const GrScratchKey& that) { 190 bool operator==(const GrScratchKey& that) const { 193 bool operator!=(const GrScratchKey& that) const { return !(*this == that); } 197 Builder(GrScratchKey* key, ResourceType type, int data32Count) in Builder()
|
D | GrGpuResource.h | 280 void setScratchKey(const GrScratchKey& scratchKey); 313 GrScratchKey fScratchKey;
|
/external/skia/src/gpu/ |
D | GrTexture.cpp | 85 GrScratchKey key; in GrTexture() 94 void GrTexturePriv::ComputeScratchKey(const GrSurfaceDesc& desc, GrScratchKey* key) { in ComputeScratchKey() 95 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKey() 97 GrScratchKey::Builder builder(key, kType, 2); in ComputeScratchKey()
|
D | GrResourceCache.h | 129 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, uint32_t flags = 0); 133 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey() 223 static const GrScratchKey& GetKey(const GrGpuResource& r) { in GetKey() 227 static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } in Hash() 229 typedef SkTMultiMap<GrGpuResource, GrScratchKey, ScratchMapTraits> ScratchMap;
|
D | GrGpuResourcePriv.h | 58 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey()
|
D | GrTexturePriv.h | 42 static void ComputeScratchKey(const GrSurfaceDesc&, GrScratchKey*);
|
D | GrTextureProvider.cpp | 82 GrScratchKey key; in internalRefScratchTexture()
|
D | GrGpuResource.cpp | 143 void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) { in setScratchKey()
|
D | GrResourceCache.cpp | 22 GrScratchKey::ResourceType GrScratchKey::GenerateResourceType() { in GenerateResourceType() 248 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource()
|
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 231 static void ComputeScratchKey(SimulatedProperty property, GrScratchKey* key) { in ComputeScratchKey() 232 static GrScratchKey::ResourceType t = GrScratchKey::GenerateResourceType(); in ComputeScratchKey() 233 GrScratchKey::Builder builder(key, t, kScratchKeyFieldCnt); in ComputeScratchKey() 240 return sizeof(uint32_t) * (kScratchKeyFieldCnt + GrScratchKey::kMetaDataCnt); in ExpectedScratchKeySize() 251 GrScratchKey scratchKey; in TestResource() 502 GrScratchKey key; in test_unbudgeted_to_scratch() 566 GrScratchKey scratchKey1; in test_duplicate_scratch_key() 571 GrScratchKey scratchKey; in test_duplicate_scratch_key() 612 GrScratchKey scratchKey; in test_remove_scratch_key() 671 GrScratchKey scratchKey; in test_scratch_key_consistency() [all …]
|