Searched refs:scratchKey (Results 1 - 5 of 5) sorted by relevance
/third_party/skia/tests/ |
H A D | ResourceCacheTest.cpp | 815 GrScratchKey scratchKey; in test_duplicate_scratch_key() local 816 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key() 821 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 836 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 842 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 858 GrScratchKey scratchKey; in test_remove_scratch_key() local 860 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key() 862 REPORTER_ASSERT(reporter, !cache->findAndRefScratchResource(scratchKey)); in test_remove_scratch_key() 865 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key() 867 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key() 916 GrScratchKey scratchKey; test_scratch_key_consistency() local 1107 GrScratchKey scratchKey; test_purge_invalidated() local [all...] |
/third_party/skia/src/gpu/ |
H A D | GrResourceAllocator.cpp | 117 GrScratchKey scratchKey, in Register() 120 , fScratchKey(std::move(scratchKey)) { in Register() 125 if (scratchKey.isValid()) { in Register() 143 if (!this->scratchKey().isValid()) { in isRecyclable() 295 GrScratchKey scratchKey; in findOrCreateRegisterFor() local 296 proxy->priv().computeScratchKey(*fDContext->priv().caps(), &scratchKey); in findOrCreateRegisterFor() 301 if (Register* r = fFreePool.findAndRemove(scratchKey, filter)) { in findOrCreateRegisterFor() 305 return fInternalAllocator.make<Register>(proxy, std::move(scratchKey), resourceProvider); in findOrCreateRegisterFor() 321 fFreePool.insert(r->scratchKey(), r); in expire() 116 Register(GrSurfaceProxy* originatingProxy, GrScratchKey scratchKey, GrResourceProvider* provider) Register() argument
|
H A D | GrResourceAllocator.h | 138 return r.scratchKey(); in GetKey() 162 const GrScratchKey& scratchKey() const { return fScratchKey; } in scratchKey() function in GrResourceAllocator::ActualUse::Register
|
H A D | GrResourceCache.h | 164 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey); 168 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey() 169 return fScratchMap.countForKey(scratchKey); in countScratchEntriesForKey()
|
H A D | GrResourceCache.cpp | 939 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey) { in findAndRefScratchResource() argument 940 SkASSERT(scratchKey.isValid()); in findAndRefScratchResource() 942 GrGpuResource* resource = fScratchMap.find(scratchKey, AvailableForScratchUse()); in findAndRefScratchResource() 944 fScratchMap.remove(scratchKey, resource); in findAndRefScratchResource() 1799 const GrScratchKey& scratchKey = resource->resourcePriv().getScratchKey(); 1807 SkASSERT(fScratchMap->countForKey(scratchKey)); 1809 } else if (scratchKey.isValid()) { 1813 SkASSERT(!fScratchMap->has(resource, scratchKey));
|
Completed in 8 milliseconds