Lines Matching refs:fNonpurgeableResources
210 while (fNonpurgeableResources.count()) { in abandonAll()
211 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in abandonAll()
247 while (fNonpurgeableResources.count()) { in releaseAll()
248 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in releaseAll()
428 SkASSERT(fNonpurgeableResources[*resource->cacheAccess().accessCacheIndex()] == resource); in notifyCntReachedZero()
698 int index = fNonpurgeableResources.count(); in addToNonpurgeableArray()
699 *fNonpurgeableResources.append() = resource; in addToNonpurgeableArray()
707 GrGpuResource* tail = *(fNonpurgeableResources.end() - 1); in removeFromNonpurgeableArray()
708 SkASSERT(fNonpurgeableResources[*index] == resource); in removeFromNonpurgeableArray()
709 fNonpurgeableResources[*index] = tail; in removeFromNonpurgeableArray()
711 fNonpurgeableResources.pop(); in removeFromNonpurgeableArray()
732 SkTQSort(fNonpurgeableResources.begin(), fNonpurgeableResources.end() - 1, in getNextTimestamp()
740 currNP < fNonpurgeableResources.count()) { in getNextTimestamp()
742 uint32_t tsNP = fNonpurgeableResources[currNP]->cacheAccess().timestamp(); in getNextTimestamp()
748 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
749 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
757 while (currNP < fNonpurgeableResources.count()) { in getNextTimestamp()
758 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
759 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
778 for (int i = 0; i < fNonpurgeableResources.count(); ++i) { in dumpMemoryStatistics()
779 fNonpurgeableResources[i]->dumpMemoryStatistics(traceMemoryDump); in dumpMemoryStatistics()
791 stats->fNumNonPurgeable = fNonpurgeableResources.count(); in getStats()
794 for (int i = 0; i < fNonpurgeableResources.count(); ++i) { in getStats()
795 stats->update(fNonpurgeableResources[i]); in getStats()
921 for (int i = 0; i < fNonpurgeableResources.count(); ++i) { in validate()
922 SkASSERT(!fNonpurgeableResources[i]->resourcePriv().isPurgeable() || in validate()
923 fNewlyPurgeableResourceForValidation == fNonpurgeableResources[i]); in validate()
924 SkASSERT(*fNonpurgeableResources[i]->cacheAccess().accessCacheIndex() == i); in validate()
925 SkASSERT(!fNonpurgeableResources[i]->wasDestroyed()); in validate()
926 if (fNonpurgeableResources[i]->resourcePriv().budgetedType() == GrBudgetedType::kBudgeted && in validate()
927 !fNonpurgeableResources[i]->cacheAccess().hasRef() && in validate()
928 fNewlyPurgeableResourceForValidation != fNonpurgeableResources[i]) { in validate()
929 SkASSERT(fNonpurgeableResources[i]->resourcePriv().hasPendingIO_debugOnly()); in validate()
932 stats.update(fNonpurgeableResources[i]); in validate()
976 if (index < fNonpurgeableResources.count() && fNonpurgeableResources[index] == resource) { in isInCache()