Lines Matching refs:GrResourceCache
65 class GrResourceCache::AutoValidate : ::SkNoncopyable {
67 AutoValidate(GrResourceCache* cache) : fCache(cache) { cache->validate(); } in AutoValidate()
70 GrResourceCache* fCache;
75 inline GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref() = default;
77 inline GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref(GrTexture* texture) in TextureAwaitingUnref()
80 inline GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref(TextureAwaitingUnref&& that) { in TextureAwaitingUnref()
85 inline GrResourceCache::TextureAwaitingUnref& GrResourceCache::TextureAwaitingUnref::operator=( in operator =()
92 inline GrResourceCache::TextureAwaitingUnref::~TextureAwaitingUnref() { in ~TextureAwaitingUnref()
100 inline void GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref::addRef() { ++fNumUnrefs; } in addRef()
102 inline void GrResourceCache::TextureAwaitingUnref::unref() { in unref()
108 inline bool GrResourceCache::TextureAwaitingUnref::finished() { return !fNumUnrefs; } in finished()
112 GrResourceCache::GrResourceCache(GrSingleOwner* singleOwner, in GrResourceCache() function in GrResourceCache
124 GrResourceCache::~GrResourceCache() { in ~GrResourceCache()
128 void GrResourceCache::setLimit(size_t bytes) { in setLimit()
133 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource()
167 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource()
198 void GrResourceCache::abandonAll() { in abandonAll()
230 void GrResourceCache::releaseAll() { in releaseAll()
271 void GrResourceCache::refResource(GrGpuResource* resource) { in refResource()
282 class GrResourceCache::AvailableForScratchUse {
293 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey) { in findAndRefScratchResource()
305 void GrResourceCache::willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey()
313 void GrResourceCache::removeUniqueKey(GrGpuResource* resource) { in removeUniqueKey()
333 void GrResourceCache::changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
375 void GrResourceCache::refAndMakeResourceMRU(GrGpuResource* resource) { in refAndMakeResourceMRU()
396 void GrResourceCache::notifyARefCntReachedZero(GrGpuResource* resource, in notifyARefCntReachedZero()
478 void GrResourceCache::didChangeBudgetStatus(GrGpuResource* resource) { in didChangeBudgetStatus()
524 void GrResourceCache::purgeAsNeeded() { in purgeAsNeeded()
567 void GrResourceCache::purgeUnlockedResources(const GrStdSteadyClock::time_point* purgeTime, in purgeUnlockedResources()
634 bool GrResourceCache::purgeToMakeHeadroom(size_t desiredHeadroomBytes) { in purgeToMakeHeadroom()
673 void GrResourceCache::purgeUnlockedResources(size_t bytesToPurge, bool preferScratchResources) { in purgeUnlockedResources()
714 bool GrResourceCache::requestsFlush() const { in requestsFlush()
719 void GrResourceCache::insertDelayedTextureUnref(GrTexture* texture) { in insertDelayedTextureUnref()
729 void GrResourceCache::processFreedGpuResources() { in processFreedGpuResources()
751 void GrResourceCache::addToNonpurgeableArray(GrGpuResource* resource) { in addToNonpurgeableArray()
757 void GrResourceCache::removeFromNonpurgeableArray(GrGpuResource* resource) { in removeFromNonpurgeableArray()
769 uint32_t GrResourceCache::getNextTimestamp() { in getNextTimestamp()
831 void GrResourceCache::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { in dumpMemoryStatistics()
841 void GrResourceCache::getStats(Stats* stats) const { in getStats()
857 void GrResourceCache::dumpStats(SkString* out) const { in dumpStats()
876 void GrResourceCache::dumpStatsKeyValuePairs(SkTArray<SkString>* keys, in dumpStatsKeyValuePairs()
890 void GrResourceCache::validate() const { in validate()
909 Stats(const GrResourceCache* cache) { in validate()
1011 bool GrResourceCache::isInCache(const GrGpuResource* resource) const { in isInCache()