Lines Matching refs:cacheAccess

127     resource->cacheAccess().setTimestamp(this->getNextTimestamp());  in insertResource()
149 SkASSERT(!resource->cacheAccess().isWrapped()); in insertResource()
191 back->cacheAccess().abandon(); in abandonAll()
197 top->cacheAccess().abandon(); in abandonAll()
215 back->cacheAccess().release(); in releaseAll()
221 top->cacheAccess().release(); in releaseAll()
238 if (resource->internalHasRef() || !resource->cacheAccess().isScratch()) { in operator ()()
285 resource->cacheAccess().removeUniqueKey(); in removeUniqueKey()
307 SkDEBUGCODE(resource->cacheAccess().removeUniqueKey();) in changeUniqueKey()
308 old->cacheAccess().release(); in changeUniqueKey()
311 old->cacheAccess().removeUniqueKey(); in changeUniqueKey()
315 resource->cacheAccess().setUniqueKey(newKey); in changeUniqueKey()
318 resource->cacheAccess().removeUniqueKey(); in changeUniqueKey()
335 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in refAndMakeResourceMRU()
346 SkASSERT(fNonpurgeableResources[*resource->cacheAccess().accessCacheIndex()] == resource); in notifyCntReachedZero()
357 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in notifyCntReachedZero()
372 if (!resource->cacheAccess().isWrapped() && in notifyCntReachedZero()
392 resource->cacheAccess().release(); in notifyCntReachedZero()
460 uint32_t oldestResourceTimestamp = fPurgeableQueue.peek()->cacheAccess().timestamp(); in purgeAsNeeded()
466 resource->cacheAccess().release(); in purgeAsNeeded()
474 resource->cacheAccess().release(); in purgeAsNeeded()
494 resource->cacheAccess().release(); in purgeAllUnlocked()
514 *resource->cacheAccess().accessCacheIndex() = index; in addToNonpurgeableArray()
518 int* index = resource->cacheAccess().accessCacheIndex(); in removeFromNonpurgeableArray()
524 *tail->cacheAccess().accessCacheIndex() = *index; in removeFromNonpurgeableArray()
560 uint32_t tsP = sortedPurgeableResources[currP]->cacheAccess().timestamp(); in getNextTimestamp()
561 uint32_t tsNP = fNonpurgeableResources[currNP]->cacheAccess().timestamp(); in getNextTimestamp()
564 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
567 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
568 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
574 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
577 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
578 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
644 if (resource->cacheAccess().isScratch()) { in validate()
648 SkASSERT(!resource->cacheAccess().isWrapped()); in validate()
654 SkASSERT(!resource->cacheAccess().isWrapped()); in validate()
660 SkASSERT(!resource->cacheAccess().isWrapped()); in validate()
676 SkASSERT(*fNonpurgeableResources[i]->cacheAccess().accessCacheIndex() == i); in validate()
682 SkASSERT(*fPurgeableQueue.at(i)->cacheAccess().accessCacheIndex() == i); in validate()
711 int index = *resource->cacheAccess().accessCacheIndex(); in isInCache()