Lines Matching refs:GrResourceCache
63 class GrResourceCache::AutoValidate : ::SkNoncopyable {
65 AutoValidate(GrResourceCache* cache) : fCache(cache) { cache->validate(); } in AutoValidate()
68 GrResourceCache* fCache;
73 inline GrResourceCache::ResourceAwaitingUnref::ResourceAwaitingUnref() = default;
75 inline GrResourceCache::ResourceAwaitingUnref::ResourceAwaitingUnref(GrGpuResource* resource) in ResourceAwaitingUnref()
78 inline GrResourceCache::ResourceAwaitingUnref::ResourceAwaitingUnref(ResourceAwaitingUnref&& that) { in ResourceAwaitingUnref()
83 inline GrResourceCache::ResourceAwaitingUnref& GrResourceCache::ResourceAwaitingUnref::operator=( in operator =()
90 inline GrResourceCache::ResourceAwaitingUnref::~ResourceAwaitingUnref() { in ~ResourceAwaitingUnref()
98 inline void GrResourceCache::ResourceAwaitingUnref::addRef() { ++fNumUnrefs; } in addRef()
100 inline void GrResourceCache::ResourceAwaitingUnref::unref() { in unref()
106 inline bool GrResourceCache::ResourceAwaitingUnref::finished() { return !fNumUnrefs; } in finished()
110 GrResourceCache::GrResourceCache(const GrCaps* caps, GrSingleOwner* singleOwner, in GrResourceCache() function in GrResourceCache
136 GrResourceCache::~GrResourceCache() { in ~GrResourceCache()
140 void GrResourceCache::setLimits(int count, size_t bytes) { in setLimits()
146 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource()
185 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource()
217 void GrResourceCache::abandonAll() { in abandonAll()
247 void GrResourceCache::releaseAll() { in releaseAll()
284 class GrResourceCache::AvailableForScratchUse {
301 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource()
333 void GrResourceCache::willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey()
341 void GrResourceCache::removeUniqueKey(GrGpuResource* resource) { in removeUniqueKey()
361 void GrResourceCache::changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
402 void GrResourceCache::refAndMakeResourceMRU(GrGpuResource* resource) { in refAndMakeResourceMRU()
419 void GrResourceCache::notifyCntReachedZero(GrGpuResource* resource, uint32_t flags) { in notifyCntReachedZero()
493 void GrResourceCache::didChangeBudgetStatus(GrGpuResource* resource) { in didChangeBudgetStatus()
524 void GrResourceCache::purgeAsNeeded() { in purgeAsNeeded()
550 void GrResourceCache::purgeUnlockedResources(bool scratchResourcesOnly) { in purgeUnlockedResources()
583 void GrResourceCache::purgeResourcesNotUsedSince(GrStdSteadyClock::time_point purgeTime) { in purgeResourcesNotUsedSince()
601 void GrResourceCache::purgeUnlockedResources(size_t bytesToPurge, bool preferScratchResources) { in purgeUnlockedResources()
642 void GrResourceCache::insertDelayedResourceUnref(GrGpuResource* resource) { in insertDelayedResourceUnref()
652 void GrResourceCache::processFreedGpuResources() { in processFreedGpuResources()
672 void GrResourceCache::addToNonpurgeableArray(GrGpuResource* resource) { in addToNonpurgeableArray()
678 void GrResourceCache::removeFromNonpurgeableArray(GrGpuResource* resource) { in removeFromNonpurgeableArray()
690 uint32_t GrResourceCache::getNextTimestamp() { in getNextTimestamp()
752 void GrResourceCache::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { in dumpMemoryStatistics()
762 void GrResourceCache::getStats(Stats* stats) const { in getStats()
778 void GrResourceCache::dumpStats(SkString* out) const { in dumpStats()
798 void GrResourceCache::dumpStatsKeyValuePairs(SkTArray<SkString>* keys, in dumpStatsKeyValuePairs()
812 void GrResourceCache::validate() const { in validate()
831 Stats(const GrResourceCache* cache) { in validate()
934 bool GrResourceCache::isInCache(const GrGpuResource* resource) const { in isInCache()