Lines Matching refs:cacheAccess
142 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in insertResource()
163 SkASSERT(!resource->cacheAccess().isUsableAsScratch()); in insertResource()
189 if (resource->cacheAccess().isUsableAsScratch()) { in removeResource()
208 back->cacheAccess().abandon(); in abandonAll()
214 top->cacheAccess().abandon(); in abandonAll()
251 back->cacheAccess().release(); in releaseAll()
257 top->cacheAccess().release(); in releaseAll()
274 if (resource->cacheAccess().hasRef()) { in refResource()
308 if (resource->cacheAccess().isUsableAsScratch()) { in willRemoveScratchKey()
321 resource->cacheAccess().removeUniqueKey(); in removeUniqueKey()
322 if (resource->cacheAccess().isUsableAsScratch()) { in removeUniqueKey()
344 old->cacheAccess().release(); in changeUniqueKey()
361 if (resource->cacheAccess().isUsableAsScratch()) { in changeUniqueKey()
366 resource->cacheAccess().setUniqueKey(newKey); in changeUniqueKey()
385 } else if (!resource->cacheAccess().hasRefOrCommandBufferUsage() && in refAndMakeResourceMRU()
390 resource->cacheAccess().ref(); in refAndMakeResourceMRU()
392 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in refAndMakeResourceMRU()
404 SkASSERT(fNonpurgeableResources[*resource->cacheAccess().accessCacheIndex()] == resource); in notifyARefCntReachedZero()
407 if (resource->cacheAccess().isUsableAsScratch()) { in notifyARefCntReachedZero()
412 if (resource->cacheAccess().hasRefOrCommandBufferUsage()) { in notifyARefCntReachedZero()
425 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in notifyARefCntReachedZero()
440 resource->cacheAccess().setTimeWhenResourceBecomePurgeable(); in notifyARefCntReachedZero()
472 resource->cacheAccess().release(); in notifyARefCntReachedZero()
497 !resource->cacheAccess().hasRefOrCommandBufferUsage()) { in didChangeBudgetStatus()
500 if (resource->cacheAccess().isUsableAsScratch()) { in didChangeBudgetStatus()
509 !resource->cacheAccess().hasRefOrCommandBufferUsage()) { in didChangeBudgetStatus()
512 if (!resource->cacheAccess().hasRef() && !resource->getUniqueKey().isValid() && in didChangeBudgetStatus()
549 resource->cacheAccess().release(); in purgeAsNeeded()
559 resource->cacheAccess().release(); in purgeAsNeeded()
583 resource->cacheAccess().timeWhenResourceBecamePurgeable(); in purgeUnlockedResources()
594 resource->cacheAccess().release(); in purgeUnlockedResources()
600 fPurgeableQueue.peek()->cacheAccess().timeWhenResourceBecamePurgeable() >= *purgeTime) { in purgeUnlockedResources()
613 resource->cacheAccess().timeWhenResourceBecamePurgeable(); in purgeUnlockedResources()
627 scratchResources.getAt(i)->cacheAccess().release(); in purgeUnlockedResources()
668 resource->cacheAccess().release(); in purgeToMakeHeadroom()
698 scratchResources.getAt(i)->cacheAccess().release(); in purgeUnlockedResources()
754 *resource->cacheAccess().accessCacheIndex() = index; in addToNonpurgeableArray()
758 int* index = resource->cacheAccess().accessCacheIndex(); in removeFromNonpurgeableArray()
764 *tail->cacheAccess().accessCacheIndex() = *index; in removeFromNonpurgeableArray()
795 uint32_t tsP = sortedPurgeableResources[currP]->cacheAccess().timestamp(); in getNextTimestamp()
796 uint32_t tsNP = fNonpurgeableResources[currNP]->cacheAccess().timestamp(); in getNextTimestamp()
799 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
802 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
803 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
809 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
812 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
813 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
925 if (resource->cacheAccess().isUsableAsScratch()) { in validate()
928 SkASSERT(!resource->cacheAccess().hasRef()); in validate()
934 uniqueKey.isValid() || resource->cacheAccess().hasRef()); in validate()
955 SkASSERT(resource.cacheAccess().isUsableAsScratch()); in validate()
968 SkASSERT(*fNonpurgeableResources[i]->cacheAccess().accessCacheIndex() == i); in validate()
971 !fNonpurgeableResources[i]->cacheAccess().hasRefOrCommandBufferUsage() && in validate()
979 SkASSERT(*fPurgeableQueue.at(i)->cacheAccess().accessCacheIndex() == i); in validate()
1012 int index = *resource->cacheAccess().accessCacheIndex(); in isInCache()