Home
last modified time | relevance | path

Searched refs:isScratch (Results 1 – 9 of 9) sorted by relevance

/external/skia/src/gpu/
DGrGpuResourceCacheAccess.h30 bool isScratch() const { in isScratch() function
36 return this->isScratch() && !fResource->internalHasRef(); in isUsableAsScratch()
DGrBlockAllocator.cpp216 SkASSERT(fHead.fPrev->isScratch()); in addBlock()
272 SkASSERT(!prev && (!fHead.fPrev || fHead.fPrev->isScratch())); in validate()
DGrBlockAllocator.h144 bool isScratch() const { return fCursor < 0; } in isScratch() function
714 if (!Forward && fNext && fNext->isScratch()) { in advance()
719 SkASSERT(!fNext || !fNext->isScratch()); in advance()
DGrResourceCache.h220 if (resource->cacheAccess().isScratch()) { in update()
/external/skqp/src/gpu/
DGrGpuResourceCacheAccess.h27 bool isScratch() const { in isScratch() function
DGrResourceCache.h222 if (resource->cacheAccess().isScratch()) { in update()
DGrResourceCache.cpp257 if (resource->internalHasRef() || !resource->cacheAccess().isScratch()) { in operator ()()
756 if (resource->cacheAccess().isScratch()) { in validate()
/external/skia/tests/
DResourceCacheTest.cpp746 REPORTER_ASSERT(reporter, !resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
766 REPORTER_ASSERT(reporter, resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
783 REPORTER_ASSERT(reporter, !resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
1313 const bool isScratch = (i % 2 == 0); in test_time_purge() local
1316 TestResource* r = isScratch ? TestResource::CreateScratch(gpu, budgeted, property) in test_time_purge()
1318 if (!isScratch) { in test_time_purge()
/external/skqp/tests/
DResourceCacheTest.cpp705 REPORTER_ASSERT(reporter, !resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
725 REPORTER_ASSERT(reporter, resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()
742 REPORTER_ASSERT(reporter, !resource->cacheAccess().isScratch()); in test_unbudgeted_to_scratch()