Home | History | Annotate | Download | only in core

Lines Matching refs:fRefCnt

29     SkRefCnt() : fRefCnt(1) {}
35 SkASSERT(fRefCnt == 1);
36 fRefCnt = 0; // illegal value, to catch us if we reuse after delete
42 int32_t getRefCnt() const { return fRefCnt; }
47 SkASSERT(fRefCnt > 0);
48 sk_atomic_inc(&fRefCnt);
57 SkASSERT(fRefCnt > 0);
58 if (sk_atomic_dec(&fRefCnt) == 1) {
59 fRefCnt = 1; // so our destructor won't complain
65 SkASSERT(fRefCnt > 0);
69 mutable int32_t fRefCnt;