• Home
  • Raw
  • Download

Lines Matching refs:fNonpurgeableResources

205     while (fNonpurgeableResources.count()) {  in abandonAll()
206 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in abandonAll()
248 while (fNonpurgeableResources.count()) { in releaseAll()
249 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in releaseAll()
404 SkASSERT(fNonpurgeableResources[*resource->cacheAccess().accessCacheIndex()] == resource); in notifyARefCntReachedZero()
752 int index = fNonpurgeableResources.count(); in addToNonpurgeableArray()
753 *fNonpurgeableResources.append() = resource; in addToNonpurgeableArray()
761 GrGpuResource* tail = *(fNonpurgeableResources.end() - 1); in removeFromNonpurgeableArray()
762 SkASSERT(fNonpurgeableResources[*index] == resource); in removeFromNonpurgeableArray()
763 fNonpurgeableResources[*index] = tail; in removeFromNonpurgeableArray()
765 fNonpurgeableResources.pop(); in removeFromNonpurgeableArray()
786 SkTQSort(fNonpurgeableResources.begin(), fNonpurgeableResources.end(), in getNextTimestamp()
794 currNP < fNonpurgeableResources.count()) { in getNextTimestamp()
796 uint32_t tsNP = fNonpurgeableResources[currNP]->cacheAccess().timestamp(); in getNextTimestamp()
802 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
803 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
811 while (currNP < fNonpurgeableResources.count()) { in getNextTimestamp()
812 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
813 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
832 for (int i = 0; i < fNonpurgeableResources.count(); ++i) { in dumpMemoryStatistics()
833 fNonpurgeableResources[i]->dumpMemoryStatistics(traceMemoryDump); in dumpMemoryStatistics()
845 stats->fNumNonPurgeable = fNonpurgeableResources.count(); in getStats()
848 for (int i = 0; i < fNonpurgeableResources.count(); ++i) { in getStats()
849 stats->update(fNonpurgeableResources[i]); in getStats()
965 for (int i = 0; i < fNonpurgeableResources.count(); ++i) { in validate()
966 SkASSERT(!fNonpurgeableResources[i]->resourcePriv().isPurgeable() || in validate()
967 fNewlyPurgeableResourceForValidation == fNonpurgeableResources[i]); in validate()
968 SkASSERT(*fNonpurgeableResources[i]->cacheAccess().accessCacheIndex() == i); in validate()
969 SkASSERT(!fNonpurgeableResources[i]->wasDestroyed()); in validate()
970 if (fNonpurgeableResources[i]->resourcePriv().budgetedType() == GrBudgetedType::kBudgeted && in validate()
971 !fNonpurgeableResources[i]->cacheAccess().hasRefOrCommandBufferUsage() && in validate()
972 fNewlyPurgeableResourceForValidation != fNonpurgeableResources[i]) { in validate()
975 stats.update(fNonpurgeableResources[i]); in validate()
1019 if (index < fNonpurgeableResources.count() && fNonpurgeableResources[index] == resource) { in isInCache()