Lines Matching refs:cacheAccess

102     resource->cacheAccess().setTimestamp(this->getNextTimestamp());  in insertResource()
168 back->cacheAccess().abandon(); in abandonAll()
174 top->cacheAccess().abandon(); in abandonAll()
192 back->cacheAccess().release(); in releaseAll()
198 top->cacheAccess().release(); in releaseAll()
217 if (resource->internalHasRef() || !resource->cacheAccess().isScratch()) { in operator ()()
273 resource->cacheAccess().removeUniqueKey(); in removeUniqueKey()
306 SkDEBUGCODE(resource->cacheAccess().removeUniqueKey();) in changeUniqueKey()
307 old->cacheAccess().release(); in changeUniqueKey()
313 resource->cacheAccess().setUniqueKey(newKey); in changeUniqueKey()
333 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in refAndMakeResourceMRU()
344 SkASSERT(fNonpurgeableResources[*resource->cacheAccess().accessCacheIndex()] == resource); in notifyCntReachedZero()
355 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in notifyCntReachedZero()
367 resource->cacheAccess().setFlushCntWhenResourceBecamePurgeable(fExternalFlushCnt); in notifyCntReachedZero()
368 resource->cacheAccess().setTimeWhenResourceBecomePurgeable(); in notifyCntReachedZero()
392 resource->cacheAccess().release(); in notifyCntReachedZero()
463 fPurgeableQueue.peek()->cacheAccess().flushCntWhenResourceBecamePurgeable(); in purgeAsNeeded()
474 resource->cacheAccess().release(); in purgeAsNeeded()
483 resource->cacheAccess().release(); in purgeAsNeeded()
502 resource->cacheAccess().release(); in purgeAllUnlocked()
511 fPurgeableQueue.peek()->cacheAccess().timeWhenResourceBecamePurgeable(); in purgeResourcesNotUsedSince()
522 resource->cacheAccess().release(); in purgeResourcesNotUsedSince()
540 *resource->cacheAccess().accessCacheIndex() = index; in addToNonpurgeableArray()
544 int* index = resource->cacheAccess().accessCacheIndex(); in removeFromNonpurgeableArray()
550 *tail->cacheAccess().accessCacheIndex() = *index; in removeFromNonpurgeableArray()
581 uint32_t tsP = sortedPurgeableResources[currP]->cacheAccess().timestamp(); in getNextTimestamp()
582 uint32_t tsNP = fNonpurgeableResources[currNP]->cacheAccess().timestamp(); in getNextTimestamp()
585 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
588 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
589 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
595 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
598 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
599 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
630 fPurgeableQueue.at(i)->cacheAccess().setFlushCntWhenResourceBecamePurgeable(0); in notifyFlushOccurred()
683 if (resource->cacheAccess().isScratch()) { in validate()
733 SkASSERT(*fNonpurgeableResources[i]->cacheAccess().accessCacheIndex() == i); in validate()
739 SkASSERT(*fPurgeableQueue.at(i)->cacheAccess().accessCacheIndex() == i); in validate()
768 int index = *resource->cacheAccess().accessCacheIndex(); in isInCache()