Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/
DGrGpuBuffer.cpp62 GrScratchKey* key) { in ComputeScratchKeyForDynamicBuffer()
63 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKeyForDynamicBuffer()
64 GrScratchKey::Builder builder(key, kType, 1 + (sizeof(size_t) + 3) / 4); in ComputeScratchKeyForDynamicBuffer()
72 void GrGpuBuffer::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrAttachment.cpp82 GrScratchKey* key) { in ComputeScratchKey()
83 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKey()
85 GrScratchKey::Builder builder(key, kType, 5); in ComputeScratchKey()
89 void GrAttachment::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrResourceAllocator.h128 static const GrScratchKey& GetKey(const Register& r) { in GetKey()
132 static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } in Hash()
135 typedef SkTMultiMap<Register, GrScratchKey, FreePoolTraits> FreePoolMultiMap;
151 Register(GrSurfaceProxy* originatingProxy, GrScratchKey, GrResourceProvider*);
153 const GrScratchKey& scratchKey() const { return fScratchKey; } in scratchKey()
173 GrScratchKey fScratchKey; // free pool wants a reference to this.
DGrTexture.cpp88 void GrTexture::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
109 GrScratchKey* key) { in ComputeScratchKey()
110 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKey()
122 GrScratchKey::Builder builder(key, kType, 5); in ComputeScratchKey()
DGrResourceCache.h126 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey);
130 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey()
295 static const GrScratchKey& GetKey(const GrGpuResource& r) { in GetKey()
299 static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } in Hash()
302 typedef SkTMultiMap<GrGpuResource, GrScratchKey, ScratchMapTraits> ScratchMap;
DGrGpuBuffer.h22 static void ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType, GrScratchKey*);
96 void computeScratchKey(GrScratchKey* key) const override;
DGrTexture.h64 GrScratchKey* key);
71 void computeScratchKey(GrScratchKey*) const override;
DGrAttachment.h68 GrScratchKey* key);
81 void computeScratchKey(GrScratchKey*) const final;
DGrGpuResource.h267 virtual void computeScratchKey(GrScratchKey*) const {} in computeScratchKey() argument
303 GrScratchKey fScratchKey;
DGrSurfaceProxyPriv.h20 void computeScratchKey(const GrCaps& caps, GrScratchKey* key) const { in computeScratchKey()
DGrGpuResourcePriv.h63 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey()
/external/skqp/src/gpu/
DGrBuffer.cpp48 GrScratchKey* key) { in ComputeScratchKeyForDynamicVBO()
49 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKeyForDynamicVBO()
50 GrScratchKey::Builder builder(key, kType, 1 + (sizeof(size_t) + 3) / 4); in ComputeScratchKeyForDynamicVBO()
67 void GrBuffer::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrTexture.cpp79 void GrTexture::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
94 GrMipMapped mipMapped, GrScratchKey* key) { in ComputeScratchKey()
95 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKey()
109 GrScratchKey::Builder builder(key, kType, 3); in ComputeScratchKey()
115 void GrTexturePriv::ComputeScratchKey(const GrSurfaceDesc& desc, GrScratchKey* key) { in ComputeScratchKey()
DGrResourceCache.h136 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, size_t resourceSize,
141 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey()
289 static const GrScratchKey& GetKey(const GrGpuResource& r) { in GetKey()
293 static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } in Hash()
296 typedef SkTMultiMap<GrGpuResource, GrScratchKey, ScratchMapTraits> ScratchMap;
DGrTexturePriv.h53 static void ComputeScratchKey(const GrSurfaceDesc&, GrScratchKey*);
56 GrMipMapped, GrScratchKey* key);
DGrResourceAllocator.h96 static const GrScratchKey& GetKey(const GrSurface& s) { in GetKey()
100 static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } in Hash()
103 typedef SkTMultiMap<GrSurface, GrScratchKey, FreePoolTraits> FreePoolMultiMap;
DGrBuffer.h28 static void ComputeScratchKeyForDynamicVBO(size_t size, GrBufferType, GrScratchKey*);
120 void computeScratchKey(GrScratchKey* key) const override;
DGrGpuResourcePriv.h65 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey()
DGrSurfaceProxyPriv.h36 void computeScratchKey(GrScratchKey* key) const { return fProxy->computeScratchKey(key); } in computeScratchKey()
/external/skqp/include/private/
DGrResourceKey.h186 class GrScratchKey : public GrResourceKey {
198 GrScratchKey() {} in GrScratchKey() function
200 GrScratchKey(const GrScratchKey& that) { *this = that; } in GrScratchKey() function
209 GrScratchKey& operator=(const GrScratchKey& that) {
214 bool operator==(const GrScratchKey& that) const { return this->INHERITED::operator==(that); }
215 bool operator!=(const GrScratchKey& that) const { return !(*this == that); }
219 Builder(GrScratchKey* key, ResourceType type, int data32Count) in Builder()
/external/skia/include/private/
DGrResourceKey.h187 class GrScratchKey : public GrResourceKey {
199 GrScratchKey() {} in GrScratchKey() function
201 GrScratchKey(const GrScratchKey& that) { *this = that; } in GrScratchKey() function
210 GrScratchKey& operator=(const GrScratchKey& that) {
215 bool operator==(const GrScratchKey& that) const { return this->INHERITED::operator==(that); }
216 bool operator!=(const GrScratchKey& that) const { return !(*this == that); }
220 Builder(GrScratchKey* key, ResourceType type, int data32Count) in Builder()
/external/skqp/include/gpu/
DGrGpuResource.h300 virtual void computeScratchKey(GrScratchKey*) const {} in computeScratchKey() argument
342 GrScratchKey fScratchKey;
DGrTexture.h85 void computeScratchKey(GrScratchKey*) const override;
/external/skqp/tests/
DResourceCacheTest.cpp295 static void ComputeScratchKey(SimulatedProperty property, GrScratchKey* key) { in ComputeScratchKey()
296 static GrScratchKey::ResourceType t = GrScratchKey::GenerateResourceType(); in ComputeScratchKey()
297 GrScratchKey::Builder builder(key, t, kScratchKeyFieldCnt); in ComputeScratchKey()
304 return sizeof(uint32_t) * (kScratchKeyFieldCnt + GrScratchKey::kMetaDataCnt); in ExpectedScratchKeySize()
331 void computeScratchKey(GrScratchKey* key) const override { in computeScratchKey()
698 GrScratchKey key; in test_unbudgeted_to_scratch()
770 GrScratchKey scratchKey1; in test_duplicate_scratch_key()
775 GrScratchKey scratchKey; in test_duplicate_scratch_key()
817 GrScratchKey scratchKey; in test_remove_scratch_key()
877 GrScratchKey scratchKey; in test_scratch_key_consistency()
[all …]
/external/skia/tests/
DResourceCacheTest.cpp273 static void ComputeScratchKey(SimulatedProperty property, GrScratchKey* key) { in ComputeScratchKey()
274 static GrScratchKey::ResourceType t = GrScratchKey::GenerateResourceType(); in ComputeScratchKey()
275 GrScratchKey::Builder builder(key, t, kScratchKeyFieldCnt); in ComputeScratchKey()
282 return sizeof(uint32_t) * (kScratchKeyFieldCnt + GrScratchKey::kMetaDataCnt); in ExpectedScratchKeySize()
309 void computeScratchKey(GrScratchKey* key) const override { in computeScratchKey()
739 GrScratchKey key; in test_unbudgeted_to_scratch()
810 GrScratchKey scratchKey1; in test_duplicate_scratch_key()
815 GrScratchKey scratchKey; in test_duplicate_scratch_key()
858 GrScratchKey scratchKey; in test_remove_scratch_key()
916 GrScratchKey scratchKey; in test_scratch_key_consistency()
[all …]

12