Home
last modified time | relevance | path

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

/third_party/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()
DGrResourceAllocator.h137 static const GrScratchKey& GetKey(const Register& r) { in GetKey()
141 static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } in Hash()
144 typedef SkTMultiMap<Register, GrScratchKey, FreePoolTraits> FreePoolMultiMap;
160 Register(GrSurfaceProxy* originatingProxy, GrScratchKey, GrResourceProvider*);
162 const GrScratchKey& scratchKey() const { return fScratchKey; } in scratchKey()
182 GrScratchKey fScratchKey; // free pool wants a reference to this.
DGrTexture.cpp89 void GrTexture::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
110 GrScratchKey* key) { in ComputeScratchKey()
111 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKey()
123 GrScratchKey::Builder builder(key, kType, 5); in ComputeScratchKey()
DGrAttachment.cpp106 GrScratchKey* key) { in ComputeScratchKey()
107 static const GrScratchKey::ResourceType kType = GrScratchKey::GenerateResourceType(); in ComputeScratchKey()
109 GrScratchKey::Builder builder(key, kType, 5); in ComputeScratchKey()
114 void GrAttachment::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrResourceCache.h153 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey);
157 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey()
331 static const GrScratchKey& GetKey(const GrGpuResource& r) { in GetKey()
335 static uint32_t Hash(const GrScratchKey& key) { return key.hash(); } in Hash()
338 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.h70 GrScratchKey* key);
86 void computeScratchKey(GrScratchKey*) const final;
DGrResourceAllocator.cpp117 GrScratchKey scratchKey, in Register()
289 Register* r = fInternalAllocator.make<Register>(proxy, GrScratchKey(), resourceProvider); in findOrCreateRegisterFor()
295 GrScratchKey scratchKey; in findOrCreateRegisterFor()
DGrGpuResource.h365 virtual void computeScratchKey(GrScratchKey*) const {} in computeScratchKey() argument
402 GrScratchKey fScratchKey;
DGrGpuResourcePriv.h63 const GrScratchKey& getScratchKey() const { return fResource->fScratchKey; } in getScratchKey()
DGrSurfaceProxyPriv.h20 void computeScratchKey(const GrCaps& caps, GrScratchKey* key) const { in computeScratchKey()
DGrResourceProvider.cpp307 sk_sp<GrTexture> GrResourceProvider::findAndRefScratchTexture(const GrScratchKey& key) { in findAndRefScratchTexture()
336 GrScratchKey key; in findAndRefScratchTexture()
568 GrScratchKey key; in createBuffer()
734 GrScratchKey key; in refScratchMSAAAttachment()
DGrResourceCache.cpp40 GrScratchKey::ResourceType GrScratchKey::GenerateResourceType() { in GenerateResourceType()
371 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey) { in findAndRefScratchResource()
1115 const GrScratchKey& scratchKey = resource->resourcePriv().getScratchKey(); in validate()
DGrResourceProvider.h117 sk_sp<GrTexture> findAndRefScratchTexture(const GrScratchKey&);
DGrSurfaceProxy.h397 void computeScratchKey(const GrCaps&, GrScratchKey*) const;
DGrSurfaceProxy.cpp211 void GrSurfaceProxy::computeScratchKey(const GrCaps& caps, GrScratchKey* key) const { in computeScratchKey()
/third_party/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()
/third_party/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 …]
/third_party/skia/src/gpu/mock/
DGrMockTexture.h215 void computeScratchKey(GrScratchKey* key) const override { GrTexture::computeScratchKey(key); } in computeScratchKey()