Home
last modified time | relevance | path

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

/external/skia/tests/
DResourceCacheTest.cpp317 GrScratchKey scratchKey; in TestResource() local
318 ComputeScratchKey(fProperty, &scratchKey); in TestResource()
319 this->setScratchKey(scratchKey); in TestResource()
634 GrScratchKey scratchKey; in test_duplicate_scratch_key() local
635 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key()
639 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
653 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
659 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
675 GrScratchKey scratchKey; in test_remove_scratch_key() local
677 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
[all …]
/external/skia/src/gpu/
DGrGpuResource.cpp168 void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) { in setScratchKey() argument
170 SkASSERT(scratchKey.isValid()); in setScratchKey()
175 fScratchKey = scratchKey; in setScratchKey()
DGrResourceCache.h131 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey,
137 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey() argument
138 return fScratchMap.countForKey(scratchKey); in countScratchEntriesForKey()
DGrResourceCache.cpp249 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource() argument
252 SkASSERT(scratchKey.isValid()); in findAndRefScratchResource()
256 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true)); in findAndRefScratchResource()
273 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false)); in findAndRefScratchResource()
/external/skia/include/gpu/
DGrGpuResource.h297 void setScratchKey(const GrScratchKey& scratchKey);