Lines Matching refs:fRefCnt
37 ++fRefCnt; in ref()
50 --fRefCnt; in unref()
56 SkASSERT(fRefCnt >= 0 && fPendingWrites >= 0 && fPendingReads >= 0); in isUnique_debugOnly()
57 return 1 == fRefCnt + fPendingWrites + fPendingReads; in isUnique_debugOnly()
73 for (int refs = fRefCnt; refs; --refs) { in release()
81 SkASSERT(fRefCnt >= 0); in validate()
84 SkASSERT(fRefCnt + fPendingReads + fPendingWrites >= 1); in validate()
90 SkASSERT(fTarget->fRefCnt >= fRefCnt); in validate()
142 GrIORefProxy() : fTarget(nullptr), fRefCnt(1), fPendingReads(0), fPendingWrites(0) {} in GrIORefProxy()
143 GrIORefProxy(sk_sp<GrSurface> surface) : fRefCnt(1), fPendingReads(0), fPendingWrites(0) { in GrIORefProxy()
159 SkASSERT(fTarget->fRefCnt > 0); in transferRefs()
160 fTarget->fRefCnt += (fRefCnt-1); // don't xfer the proxy's creation ref in transferRefs()
166 return fRefCnt; in internalGetProxyRefCnt()
194 if (0 == fPendingReads && 0 == fPendingWrites && 0 == fRefCnt) { in didRemoveRefOrPendingIO()
199 mutable int32_t fRefCnt; variable