Home
last modified time | relevance | path

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

/external/skia/tests/
DResourceCacheTest.cpp690 GrScratchKey scratchKey; in test_duplicate_scratch_key() local
691 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key()
695 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
709 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
715 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
731 GrScratchKey scratchKey; in test_remove_scratch_key() local
733 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
735 …REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize,… in test_remove_scratch_key()
738 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
740 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
[all …]
/external/skia/src/gpu/
DGrResourceCache.cpp236 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource() argument
239 SkASSERT(scratchKey.isValid()); in findAndRefScratchResource()
243 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true)); in findAndRefScratchResource()
260 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false)); in findAndRefScratchResource()
746 const GrScratchKey& scratchKey = resource->resourcePriv().getScratchKey(); in validate() local
752 SkASSERT(fScratchMap->countForKey(scratchKey)); in validate()
754 } else if (scratchKey.isValid()) { in validate()
759 SkASSERT(fScratchMap->countForKey(scratchKey)); in validate()
769 if (scratchKey.isValid()) { in validate()
770 SkASSERT(!fScratchMap->has(resource, scratchKey)); in validate()
DGrResourceCache.h137 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey,
143 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey() argument
144 return fScratchMap.countForKey(scratchKey); in countScratchEntriesForKey()