Lines Matching refs:fGpu
24 GrGpuResource::GrGpuResource(GrGpu* gpu) : fGpu(gpu), fUniqueID(CreateUniqueID()) { in GrGpuResource()
33 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCache()
42 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCacheWrapped()
51 SkASSERT(fGpu); in release()
53 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in release()
54 fGpu = nullptr; in release()
62 SkASSERT(fGpu); in abandon()
64 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in abandon()
65 fGpu = nullptr; in abandon()
115 if (fGpu) { in getContext()
116 return fGpu->getContext(); in getContext()
123 if (fGpu) { in getContext()
124 return fGpu->getContext(); in getContext()
135 get_resource_cache(fGpu)->resourceAccess().removeUniqueKey(this); in removeUniqueKey()
155 get_resource_cache(fGpu)->resourceAccess().changeUniqueKey(this, key); in setUniqueKey()
176 get_resource_cache(fGpu)->resourceAccess().notifyCntReachedZero(mutableThis, kFlag); in notifyAllCntsAreZero()
190 get_resource_cache(fGpu)->resourceAccess().notifyCntReachedZero(mutableThis, flags); in notifyRefCountIsZero()
199 get_resource_cache(fGpu)->resourceAccess().willRemoveScratchKey(this); in removeScratchKey()
212 get_resource_cache(fGpu)->resourceAccess().didChangeBudgetStatus(this); in makeBudgeted()
220 get_resource_cache(fGpu)->resourceAccess().didChangeBudgetStatus(this); in makeUnbudgeted()