Home
last modified time | relevance | path

Searched refs:GrScratchKey (Results 1 – 10 of 10) sorted by relevance

/external/skia/include/gpu/
DGrResourceKey.h162 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()
DGrGpuResource.h280 void setScratchKey(const GrScratchKey& scratchKey);
313 GrScratchKey fScratchKey;
/external/skia/src/gpu/
DGrTexture.cpp85 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()
DGrResourceCache.h129 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;
DGrGpuResourcePriv.h58 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey()
DGrTexturePriv.h42 static void ComputeScratchKey(const GrSurfaceDesc&, GrScratchKey*);
DGrTextureProvider.cpp82 GrScratchKey key; in internalRefScratchTexture()
DGrGpuResource.cpp143 void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) { in setScratchKey()
DGrResourceCache.cpp22 GrScratchKey::ResourceType GrScratchKey::GenerateResourceType() { in GenerateResourceType()
248 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource()
/external/skia/tests/
DResourceCacheTest.cpp231 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 …]