Lines Matching refs:fTarget
40 if (fTarget) { in ref()
41 fTarget->ref(); in ref()
48 if (fTarget) { in unref()
49 fTarget->unref(); in unref()
76 fTarget->unref(); in release()
78 fTarget = nullptr; in release()
88 if (fTarget) { in validate()
92 SkASSERT(fTarget->fRefCnt >= fRefCnt); in validate()
93 SkASSERT(fTarget->fPendingReads >= fPendingReads); in validate()
94 SkASSERT(fTarget->fPendingWrites >= fPendingWrites); in validate()
107 if (fTarget) { in addPendingRead()
108 fTarget->addPendingRead(); in addPendingRead()
115 if (fTarget) { in completedRead()
116 fTarget->completedRead(); in completedRead()
127 if (fTarget) { in addPendingWrite()
128 fTarget->addPendingWrite(); in addPendingWrite()
135 if (fTarget) { in completedWrite()
136 fTarget->completedWrite(); in completedWrite()
144 GrIORefProxy() : fTarget(nullptr), fRefCnt(1), fPendingReads(0), fPendingWrites(0) {} in GrIORefProxy()
148 fTarget = surface.release(); in GrIORefProxy()
159 SkASSERT(fTarget); in transferRefs()
161 SkASSERT(fTarget->fRefCnt > 0); in transferRefs()
162 fTarget->fRefCnt += (fRefCnt-1); // don't xfer the proxy's creation ref in transferRefs()
163 fTarget->fPendingReads += fPendingReads; in transferRefs()
164 fTarget->fPendingWrites += fPendingWrites; in transferRefs()
172 if (fTarget) { in internalHasPendingIO()
173 return fTarget->internalHasPendingIO(); in internalHasPendingIO()
180 if (fTarget) { in internalHasPendingWrite()
181 return fTarget->internalHasPendingWrite(); in internalHasPendingWrite()
189 GrSurface* fTarget; variable
222 if (fTarget || !SkToBool(fLazyInstantiateCallback)) { in lazyInstantiationState()
318 if (fTarget) { in underlyingUniqueID()
319 return UniqueID(fTarget->uniqueID()); in underlyingUniqueID()
347 bool isInstantiated() const { return SkToBool(fTarget); } in isInstantiated()
350 GrSurface* peekSurface() const { return fTarget; } in peekSurface()
354 GrTexture* peekTexture() const { return fTarget ? fTarget->asTexture() : nullptr; } in peekTexture()
359 return fTarget ? fTarget->asRenderTarget() : nullptr; in peekRenderTarget()
389 if (fTarget) { in gpuMemorySize()
390 return fTarget->gpuMemorySize(); in gpuMemorySize()