Searched defs:scratchKey (Results 1 - 3 of 3) sorted by relevance

/external/skia/src/gpu/
H A DGrGpuResource.cpp143 void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) { argument
145 SkASSERT(scratchKey.isValid());
150 fScratchKey = scratchKey;
H A DGrResourceCache.cpp248 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, argument
250 SkASSERT(scratchKey.isValid());
254 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true));
265 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false));
/external/skia/tests/
H A DResourceCacheTest.cpp251 GrScratchKey scratchKey; local
252 ComputeScratchKey(fProperty, &scratchKey);
253 this->setScratchKey(scratchKey);
571 GrScratchKey scratchKey; local
572 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey);
576 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
590 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
596 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));)
612 GrScratchKey scratchKey; local
614 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey);
671 GrScratchKey scratchKey; local
850 GrScratchKey scratchKey; local
[all...]

Completed in 77 milliseconds