Lines Matching defs:fRefCnt
33 SkRefCntBase() : fRefCnt(1) {}
39 SkASSERT(fRefCnt == 1);
40 fRefCnt = 0; // illegal value, to catch us if we reuse after delete
45 int32_t getRefCnt() const { return fRefCnt; }
51 bool const unique = (1 == fRefCnt);
53 // Aquire barrier (L/SL), if not provided by load of fRefCnt.
63 SkASSERT(fRefCnt > 0);
64 sk_atomic_inc(&fRefCnt); // No barrier required.
72 SkASSERT(fRefCnt > 0);
74 if (sk_atomic_dec(&fRefCnt) == 1) {
84 SkASSERT(fRefCnt > 0);
91 * so they can reset fRefCnt before the destructor is called. Should only
97 SkASSERT(0 == fRefCnt);
98 fRefCnt = 1;
116 mutable int32_t fRefCnt;