Lines Matching refs:GrResourceCache

50 class GrResourceCache::AutoValidate : ::SkNoncopyable {
52 AutoValidate(GrResourceCache* cache) : fCache(cache) { cache->validate(); } in AutoValidate()
55 GrResourceCache* fCache;
61 GrResourceCache::GrResourceCache(const GrCaps* caps) in GrResourceCache() function in GrResourceCache
85 GrResourceCache::~GrResourceCache() { in ~GrResourceCache()
90 void GrResourceCache::setLimits(int count, size_t bytes, int maxUnusedFlushes) { in setLimits()
98 void GrResourceCache::resetFlushTimestamps() { in resetFlushTimestamps()
120 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource()
157 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource()
186 void GrResourceCache::abandonAll() { in abandonAll()
210 void GrResourceCache::releaseAll() { in releaseAll()
234 class GrResourceCache::AvailableForScratchUse {
249 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource()
281 void GrResourceCache::willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey()
286 void GrResourceCache::removeUniqueKey(GrGpuResource* resource) { in removeUniqueKey()
297 void GrResourceCache::changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
332 void GrResourceCache::refAndMakeResourceMRU(GrGpuResource* resource) { in refAndMakeResourceMRU()
347 void GrResourceCache::notifyCntReachedZero(GrGpuResource* resource, uint32_t flags) { in notifyCntReachedZero()
406 void GrResourceCache::didChangeGpuMemorySize(const GrGpuResource* resource, size_t oldSize) { in didChangeGpuMemorySize()
430 void GrResourceCache::didChangeBudgetStatus(GrGpuResource* resource) { in didChangeBudgetStatus()
454 void GrResourceCache::purgeAsNeeded() { in purgeAsNeeded()
496 void GrResourceCache::purgeAllUnlocked() { in purgeAllUnlocked()
508 void GrResourceCache::processInvalidUniqueKeys( in processInvalidUniqueKeys()
519 void GrResourceCache::addToNonpurgeableArray(GrGpuResource* resource) { in addToNonpurgeableArray()
525 void GrResourceCache::removeFromNonpurgeableArray(GrGpuResource* resource) { in removeFromNonpurgeableArray()
537 uint32_t GrResourceCache::getNextTimestamp() { in getNextTimestamp()
607 void GrResourceCache::notifyFlushOccurred() { in notifyFlushOccurred()
619 void GrResourceCache::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { in dumpMemoryStatistics()
629 void GrResourceCache::validate() const { in validate()
648 Stats(const GrResourceCache* cache) { in validate()
727 bool GrResourceCache::isInCache(const GrGpuResource* resource) const { in isInCache()