Lines Matching refs:cacheAccess
128 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in insertResource()
150 SkASSERT(!resource->cacheAccess().isExternal()); in insertResource()
192 back->cacheAccess().abandon(); in abandonAll()
198 top->cacheAccess().abandon(); in abandonAll()
216 back->cacheAccess().release(); in releaseAll()
222 top->cacheAccess().release(); in releaseAll()
239 if (resource->internalHasRef() || !resource->cacheAccess().isScratch()) { in operator ()()
293 resource->cacheAccess().removeUniqueKey(); in removeUniqueKey()
315 SkDEBUGCODE(resource->cacheAccess().removeUniqueKey();) in changeUniqueKey()
316 old->cacheAccess().release(); in changeUniqueKey()
319 old->cacheAccess().removeUniqueKey(); in changeUniqueKey()
323 resource->cacheAccess().setUniqueKey(newKey); in changeUniqueKey()
326 resource->cacheAccess().removeUniqueKey(); in changeUniqueKey()
343 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in refAndMakeResourceMRU()
354 SkASSERT(fNonpurgeableResources[*resource->cacheAccess().accessCacheIndex()] == resource); in notifyCntReachedZero()
365 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in notifyCntReachedZero()
380 if (!resource->cacheAccess().isExternal() && in notifyCntReachedZero()
400 resource->cacheAccess().release(); in notifyCntReachedZero()
468 uint32_t oldestResourceTimestamp = fPurgeableQueue.peek()->cacheAccess().timestamp(); in purgeAsNeeded()
474 resource->cacheAccess().release(); in purgeAsNeeded()
482 resource->cacheAccess().release(); in purgeAsNeeded()
502 resource->cacheAccess().release(); in purgeAllUnlocked()
522 *resource->cacheAccess().accessCacheIndex() = index; in addToNonpurgeableArray()
526 int* index = resource->cacheAccess().accessCacheIndex(); in removeFromNonpurgeableArray()
532 *tail->cacheAccess().accessCacheIndex() = *index; in removeFromNonpurgeableArray()
568 uint32_t tsP = sortedPurgeableResources[currP]->cacheAccess().timestamp(); in getNextTimestamp()
569 uint32_t tsNP = fNonpurgeableResources[currNP]->cacheAccess().timestamp(); in getNextTimestamp()
572 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
575 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
576 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
582 sortedPurgeableResources[currP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
585 *fNonpurgeableResources[currNP]->cacheAccess().accessCacheIndex() = currNP; in getNextTimestamp()
586 fNonpurgeableResources[currNP++]->cacheAccess().setTimestamp(fTimestamp++); in getNextTimestamp()
661 if (resource->cacheAccess().isScratch()) { in validate()
665 SkASSERT(!resource->cacheAccess().isExternal()); in validate()
671 SkASSERT(!resource->cacheAccess().isExternal()); in validate()
677 SkASSERT(!resource->cacheAccess().isExternal()); in validate()
693 SkASSERT(*fNonpurgeableResources[i]->cacheAccess().accessCacheIndex() == i); in validate()
699 SkASSERT(*fPurgeableQueue.at(i)->cacheAccess().accessCacheIndex() == i); in validate()
728 int index = *resource->cacheAccess().accessCacheIndex(); in isInCache()