Lines Matching refs:fPurgeableQueue
174 fPurgeableQueue.remove(resource); in removeResource()
211 while (fPurgeableQueue.count()) { in abandonAll()
212 GrGpuResource* top = fPurgeableQueue.peek(); in abandonAll()
254 while (fPurgeableQueue.count()) { in releaseAll()
255 GrGpuResource* top = fPurgeableQueue.peek(); in releaseAll()
383 fPurgeableQueue.remove(resource); in refAndMakeResourceMRU()
439 fPurgeableQueue.insert(resource); in notifyARefCntReachedZero()
546 while (stillOverbudget && fPurgeableQueue.count()) { in purgeAsNeeded()
547 GrGpuResource* resource = fPurgeableQueue.peek(); in purgeAsNeeded()
556 while (stillOverbudget && fPurgeableQueue.count()) { in purgeAsNeeded()
557 GrGpuResource* resource = fPurgeableQueue.peek(); in purgeAsNeeded()
579 while (fPurgeableQueue.count()) { in purgeUnlockedResources()
580 GrGpuResource* resource = fPurgeableQueue.peek(); in purgeUnlockedResources()
599 if (purgeTime && fPurgeableQueue.count() && in purgeUnlockedResources()
600 fPurgeableQueue.peek()->cacheAccess().timeWhenResourceBecamePurgeable() >= *purgeTime) { in purgeUnlockedResources()
605 fPurgeableQueue.sort(); in purgeUnlockedResources()
609 for (int i = 0; i < fPurgeableQueue.count(); i++) { in purgeUnlockedResources()
610 GrGpuResource* resource = fPurgeableQueue.at(i); in purgeUnlockedResources()
642 fPurgeableQueue.sort(); in purgeToMakeHeadroom()
646 for (int i = 0; i < fPurgeableQueue.count(); i++) { in purgeToMakeHeadroom()
647 GrGpuResource* resource = fPurgeableQueue.at(i); in purgeToMakeHeadroom()
665 resources.push_back(fPurgeableQueue.at(i)); in purgeToMakeHeadroom()
680 fPurgeableQueue.sort(); in purgeUnlockedResources()
685 for (int i = 0; i < fPurgeableQueue.count() && stillOverbudget; i++) { in purgeUnlockedResources()
686 GrGpuResource* resource = fPurgeableQueue.at(i); in purgeUnlockedResources()
715 return this->overBudget() && !fPurgeableQueue.count() && in requestsFlush()
779 sortedPurgeableResources.setReserve(fPurgeableQueue.count()); in getNextTimestamp()
781 while (fPurgeableQueue.count()) { in getNextTimestamp()
782 *sortedPurgeableResources.append() = fPurgeableQueue.peek(); in getNextTimestamp()
783 fPurgeableQueue.pop(); in getNextTimestamp()
818 fPurgeableQueue.insert(sortedPurgeableResources[i]); in getNextTimestamp()
835 for (int i = 0; i < fPurgeableQueue.count(); ++i) { in dumpMemoryStatistics()
836 fPurgeableQueue.at(i)->dumpMemoryStatistics(traceMemoryDump); in dumpMemoryStatistics()
846 stats->fNumPurgeable = fPurgeableQueue.count(); in getStats()
851 for (int i = 0; i < fPurgeableQueue.count(); ++i) { in getStats()
852 stats->update(fPurgeableQueue.at(i)); in getStats()
977 for (int i = 0; i < fPurgeableQueue.count(); ++i) { in validate()
978 SkASSERT(fPurgeableQueue.at(i)->resourcePriv().isPurgeable()); in validate()
979 SkASSERT(*fPurgeableQueue.at(i)->cacheAccess().accessCacheIndex() == i); in validate()
980 SkASSERT(!fPurgeableQueue.at(i)->wasDestroyed()); in validate()
981 stats.update(fPurgeableQueue.at(i)); in validate()
982 purgeableBytes += fPurgeableQueue.at(i)->gpuMemorySize(); in validate()
1016 if (index < fPurgeableQueue.count() && fPurgeableQueue.at(index) == resource) { in isInCache()