Lines Matching refs:GrGpuResource

457 void GrResourceCache::updatePurgeableWidMap(GrGpuResource* resource,
476 void GrResourceCache::updatePurgeablePidMap(GrGpuResource* resource,
493 void GrResourceCache::updatePurgeableFidMap(GrGpuResource* resource,
510 void GrResourceCache::updateRealAllocWidMap(GrGpuResource* resource,
530 void GrResourceCache::updateRealAllocPidMap(GrGpuResource* resource,
548 void GrResourceCache::updateRealAllocFidMap(GrGpuResource* resource,
625 void GrResourceCache::insertResource(GrGpuResource* resource)
696 void GrResourceCache::removeResource(GrGpuResource* resource) {
747 GrGpuResource* back = *(fNonpurgeableResources.end() - 1);
753 GrGpuResource* top = fPurgeableQueue.peek();
790 GrGpuResource* back = *(fNonpurgeableResources.end() - 1);
796 GrGpuResource* top = fPurgeableQueue.peek();
816 std::vector<GrGpuResource*> recycleVector;
818 GrGpuResource* resource = fNonpurgeableResources[i];
829 GrGpuResource* resource = fPurgeableQueue.at(i);
917 void GrResourceCache::refResource(GrGpuResource* resource) {
932 bool operator()(const GrGpuResource* resource) const {
939 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey) {
942 GrGpuResource* resource = fScratchMap.find(scratchKey, AvailableForScratchUse());
955 void GrResourceCache::willRemoveScratchKey(const GrGpuResource* resource) {
963 void GrResourceCache::removeUniqueKey(GrGpuResource* resource) {
983 void GrResourceCache::changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) {
990 if (GrGpuResource* old = fUniqueHash.find(newKey)) {
1025 void GrResourceCache::refAndMakeResourceMRU(GrGpuResource* resource) {
1052 void GrResourceCache::notifyARefCntReachedZero(GrGpuResource* resource,
1053 GrGpuResource::LastRemovedRef removedRef) {
1066 if (removedRef == GrGpuResource::LastRemovedRef::kMainRef) {
1138 void GrResourceCache::didChangeBudgetStatus(GrGpuResource* resource) {
1240 GrGpuResource* resource = fPurgeableQueue.peek();
1255 GrGpuResource* resource = fPurgeableQueue.peek();
1285 GrGpuResource* resource = fPurgeableQueue.peek();
1316 SkTDArray<GrGpuResource*> scratchResources;
1318 GrGpuResource* resource = fPurgeableQueue.at(i);
1355 SkTDArray<GrGpuResource*> scratchResources;
1357 GrGpuResource* resource = fPurgeableQueue.at(i);
1392 GrGpuResource* resource = fPurgeableQueue.at(i);
1412 GrGpuResource* resource = fPurgeableQueue.at(i);
1434 SkTDArray<GrGpuResource*> exitPidResources;
1435 SkTDArray<GrGpuResource*> scratchResources;
1437 GrGpuResource* resource = fPurgeableQueue.at(i);
1473 SkTDArray<GrGpuResource*> scratchResources;
1475 GrGpuResource* resource = fPurgeableQueue.at(i);
1504 GrGpuResource* resource = fPurgeableQueue.at(i);
1519 std::vector<GrGpuResource*> resources;
1524 for (GrGpuResource* resource : resources) {
1540 SkTDArray<GrGpuResource*> scratchResources;
1543 GrGpuResource* resource = fPurgeableQueue.at(i);
1608 void GrResourceCache::addToNonpurgeableArray(GrGpuResource* resource) {
1614 void GrResourceCache::removeFromNonpurgeableArray(GrGpuResource* resource) {
1618 GrGpuResource* tail = *(fNonpurgeableResources.end() - 1);
1635 SkTDArray<GrGpuResource*> sortedPurgeableResources;
1689 SkTDArray<GrGpuResource*> resources;
1792 void update(GrGpuResource* resource) {
1831 fScratchMap.foreach([&](const GrGpuResource& resource) {
1889 bool GrResourceCache::isInCache(const GrGpuResource* resource) const {
1904 bool GrResourceCache::isInPurgeableCache(const GrGpuResource* resource) const {
1916 bool GrResourceCache::isInNonpurgeableCache(const GrGpuResource* resource) const {
1932 fUniqueHash.foreach([&](const GrGpuResource& resource){