Lines Matching refs:fRefCnt
33 SkRefCnt() : fRefCnt(1) {}
39 SkASSERT(fRefCnt == 1);
40 fRefCnt = 0; // illegal value, to catch us if we reuse after delete
46 int32_t getRefCnt() const { return fRefCnt; }
51 SkASSERT(fRefCnt > 0);
52 sk_atomic_inc(&fRefCnt); // No barrier required.
60 SkASSERT(fRefCnt > 0);
62 if (sk_atomic_dec(&fRefCnt) == 1) {
71 SkASSERT(fRefCnt > 0);
87 * so they can reset fRefCnt before the destructor is called. Should only
93 SkASSERT(0 == fRefCnt);
94 fRefCnt = 1;
109 // call SkRefCnt's & directly set fRefCnt (to 1)
111 mutable int32_t fRefCnt;