Home
last modified time | relevance | path

Searched refs:scratchKey (Results 1 – 5 of 5) sorted by relevance

/external/skia/tests/
DResourceCacheTest.cpp881 skgpu::ScratchKey scratchKey; in test_duplicate_scratch_key() local
882 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key()
887 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
902 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
908 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
924 skgpu::ScratchKey scratchKey; in test_remove_scratch_key() local
926 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
928 REPORTER_ASSERT(reporter, !cache->findAndRefScratchResource(scratchKey)); in test_remove_scratch_key()
931 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
933 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
[all …]
/external/skia/src/gpu/ganesh/
DGrResourceAllocator.cpp126 skgpu::ScratchKey scratchKey, in Register() argument
129 , fScratchKey(std::move(scratchKey)) { in Register()
157 if (!this->scratchKey().isValid()) { in isRecyclable()
311 skgpu::ScratchKey scratchKey; in findOrCreateRegisterFor() local
312 proxy->priv().computeScratchKey(*fDContext->priv().caps(), &scratchKey); in findOrCreateRegisterFor()
317 if (Register* r = fFreePool.findAndRemove(scratchKey, filter)) { in findOrCreateRegisterFor()
321 return fInternalAllocator.make<Register>(proxy, std::move(scratchKey), resourceProvider); in findOrCreateRegisterFor()
338 fFreePool.insert(r->scratchKey(), r); in expire()
DGrResourceCache.cpp213 GrGpuResource* GrResourceCache::findAndRefScratchResource(const skgpu::ScratchKey& scratchKey) { in findAndRefScratchResource() argument
214 SkASSERT(scratchKey.isValid()); in findAndRefScratchResource()
216 GrGpuResource* resource = fScratchMap.find(scratchKey); in findAndRefScratchResource()
218 fScratchMap.remove(scratchKey, resource); in findAndRefScratchResource()
794 const skgpu::ScratchKey& scratchKey = resource->resourcePriv().getScratchKey(); in validate() local
802 SkASSERT(fScratchMap->countForKey(scratchKey)); in validate()
804 } else if (scratchKey.isValid()) { in validate()
808 SkASSERT(!fScratchMap->has(resource, scratchKey)); in validate()
DGrResourceCache.h148 GrGpuResource* findAndRefScratchResource(const skgpu::ScratchKey& scratchKey);
152 int countScratchEntriesForKey(const skgpu::ScratchKey& scratchKey) const { in countScratchEntriesForKey() argument
153 return fScratchMap.countForKey(scratchKey); in countScratchEntriesForKey()
DGrResourceAllocator.h156 return r.scratchKey(); in GetKey()
181 const skgpu::ScratchKey& scratchKey() const { return fScratchKey; } in scratchKey() function