Searched refs:scratchKey (Results 1 – 5 of 5) sorted by relevance
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 251 GrScratchKey scratchKey; in TestResource() local 252 ComputeScratchKey(fProperty, &scratchKey); in TestResource() 253 this->setScratchKey(scratchKey); in TestResource() 571 GrScratchKey scratchKey; in test_duplicate_scratch_key() local 572 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key() 576 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 590 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 596 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 612 GrScratchKey scratchKey; in test_remove_scratch_key() local 614 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key() [all …]
|
/external/skia/src/gpu/ |
D | GrGpuResource.cpp | 143 void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) { in setScratchKey() argument 145 SkASSERT(scratchKey.isValid()); in setScratchKey() 150 fScratchKey = scratchKey; in setScratchKey()
|
D | GrResourceCache.h | 129 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, uint32_t flags = 0); 133 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey() argument 134 return fScratchMap.countForKey(scratchKey); in countScratchEntriesForKey()
|
D | GrResourceCache.cpp | 248 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource() argument 250 SkASSERT(scratchKey.isValid()); in findAndRefScratchResource() 254 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true)); in findAndRefScratchResource() 265 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false)); in findAndRefScratchResource()
|
/external/skia/include/gpu/ |
D | GrGpuResource.h | 280 void setScratchKey(const GrScratchKey& scratchKey);
|