Searched refs:scratchKey (Results 1 – 6 of 6) sorted by relevance
/external/skqp/tests/ |
D | ResourceCacheTest.cpp | 775 GrScratchKey scratchKey; in test_duplicate_scratch_key() local 776 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key() 780 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 794 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 800 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 817 GrScratchKey scratchKey; in test_remove_scratch_key() local 819 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key() 821 …REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize,… in test_remove_scratch_key() 824 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key() 826 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key() [all …]
|
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 775 GrScratchKey scratchKey; in test_duplicate_scratch_key() local 776 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key() 780 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 794 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 800 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key() 817 GrScratchKey scratchKey; in test_remove_scratch_key() local 819 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key() 821 …REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize,… in test_remove_scratch_key() 824 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key() 826 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key() [all …]
|
/external/skqp/src/gpu/ |
D | GrResourceCache.cpp | 267 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource() argument 270 SkASSERT(scratchKey.isValid()); in findAndRefScratchResource() 274 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true)); in findAndRefScratchResource() 291 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false)); in findAndRefScratchResource() 753 const GrScratchKey& scratchKey = resource->resourcePriv().getScratchKey(); in validate() local 759 SkASSERT(fScratchMap->countForKey(scratchKey)); in validate() 761 } else if (scratchKey.isValid()) { in validate() 766 SkASSERT(fScratchMap->countForKey(scratchKey)); in validate() 776 if (scratchKey.isValid()) { in validate() 777 SkASSERT(!fScratchMap->has(resource, scratchKey)); in validate()
|
D | GrResourceCache.h | 136 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, size_t resourceSize, 141 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey() argument 142 return fScratchMap.countForKey(scratchKey); in countScratchEntriesForKey()
|
/external/skia/src/gpu/ |
D | GrResourceCache.cpp | 301 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource() argument 304 SkASSERT(scratchKey.isValid()); in findAndRefScratchResource() 308 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true)); in findAndRefScratchResource() 325 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false)); in findAndRefScratchResource() 844 const GrScratchKey& scratchKey = resource->resourcePriv().getScratchKey(); in validate() local 850 SkASSERT(fScratchMap->countForKey(scratchKey)); in validate() 852 } else if (scratchKey.isValid()) { in validate() 857 SkASSERT(fScratchMap->countForKey(scratchKey)); in validate() 867 if (scratchKey.isValid()) { in validate() 868 SkASSERT(!fScratchMap->has(resource, scratchKey)); in validate()
|
D | GrResourceCache.h | 137 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, size_t resourceSize, 142 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const { in countScratchEntriesForKey() argument 143 return fScratchMap.countForKey(scratchKey); in countScratchEntriesForKey()
|