Lines Matching refs:GrResourceCache
62 class GrResourceCache::AutoValidate : ::SkNoncopyable {
64 AutoValidate(GrResourceCache* cache) : fCache(cache) { cache->validate(); } in AutoValidate()
67 GrResourceCache* fCache;
72 GrResourceCache::GrResourceCache(const GrCaps* caps, GrSingleOwner* singleOwner, in GrResourceCache() function in GrResourceCache
98 GrResourceCache::~GrResourceCache() { in ~GrResourceCache()
102 void GrResourceCache::setLimits(int count, size_t bytes) { in setLimits()
108 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource()
147 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource()
179 void GrResourceCache::abandonAll() { in abandonAll()
210 void GrResourceCache::releaseAll() { in releaseAll()
250 class GrResourceCache::AvailableForScratchUse {
267 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource()
299 void GrResourceCache::willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey()
307 void GrResourceCache::removeUniqueKey(GrGpuResource* resource) { in removeUniqueKey()
327 void GrResourceCache::changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
368 void GrResourceCache::refAndMakeResourceMRU(GrGpuResource* resource) { in refAndMakeResourceMRU()
385 void GrResourceCache::notifyCntReachedZero(GrGpuResource* resource, uint32_t flags) { in notifyCntReachedZero()
459 void GrResourceCache::didChangeBudgetStatus(GrGpuResource* resource) { in didChangeBudgetStatus()
490 void GrResourceCache::purgeAsNeeded() { in purgeAsNeeded()
516 void GrResourceCache::purgeUnlockedResources(bool scratchResourcesOnly) { in purgeUnlockedResources()
549 void GrResourceCache::purgeResourcesNotUsedSince(GrStdSteadyClock::time_point purgeTime) { in purgeResourcesNotUsedSince()
567 void GrResourceCache::purgeUnlockedResources(size_t bytesToPurge, bool preferScratchResources) { in purgeUnlockedResources()
608 void GrResourceCache::insertCrossContextGpuResource(GrGpuResource* resource) { in insertCrossContextGpuResource()
614 void GrResourceCache::processFreedGpuResources() { in processFreedGpuResources()
631 void GrResourceCache::addToNonpurgeableArray(GrGpuResource* resource) { in addToNonpurgeableArray()
637 void GrResourceCache::removeFromNonpurgeableArray(GrGpuResource* resource) { in removeFromNonpurgeableArray()
649 uint32_t GrResourceCache::getNextTimestamp() { in getNextTimestamp()
711 void GrResourceCache::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { in dumpMemoryStatistics()
721 void GrResourceCache::validate() const { in validate()
740 Stats(const GrResourceCache* cache) { in validate()
843 bool GrResourceCache::isInCache(const GrGpuResource* resource) const { in isInCache()