Lines Matching refs:resource
166 GrGpuResource* resource = fUniqueHash.find(key); in findAndRefUniqueResource() local
167 if (resource && this->isInCache(resource)) { in findAndRefUniqueResource()
168 this->refAndMakeResourceMRU(resource); in findAndRefUniqueResource()
169 return resource; in findAndRefUniqueResource()
251 void update(GrGpuResource* resource) { in update()
252 if (resource->cacheAccess().isScratch()) { in update()
255 if (resource->resourcePriv().refsWrappedObjects()) { in update()
258 if (GrBudgetedType::kBudgeted != resource->resourcePriv().budgetedType()) { in update()
259 fUnbudgetedSize += resource->gpuMemorySize(); in update()
302 void refResource(GrGpuResource* resource);
440 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource() argument
445 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource() argument
451 void refResource(GrGpuResource* resource) { fCache->refResource(resource); } in refResource() argument
472 void notifyARefCntReachedZero(GrGpuResource* resource, in notifyARefCntReachedZero() argument
474 fCache->notifyARefCntReachedZero(resource, removedRef); in notifyARefCntReachedZero()
480 void changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey() argument
481 fCache->changeUniqueKey(resource, newKey); in changeUniqueKey()
487 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey() argument
492 void willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey() argument
493 fCache->willRemoveScratchKey(resource); in willRemoveScratchKey()
499 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus() argument