Lines Matching refs:fRefCnt
69 GrVkResource() : fRefCnt(1) {
80 SkASSERTF(fRefCnt == 1, "fRefCnt was %d", fRefCnt);
81 fRefCnt = 0; // illegal value, to catch us if we reuse after delete
87 int32_t getRefCnt() const { return fRefCnt; }
94 if (1 == sk_atomic_load(&fRefCnt, sk_memory_order_acquire)) {
107 SkASSERT(fRefCnt > 0);
108 (void)sk_atomic_fetch_add(&fRefCnt, +1, sk_memory_order_relaxed); // No barrier required.
117 SkASSERT(fRefCnt > 0);
120 if (1 == sk_atomic_fetch_add(&fRefCnt, -1, sk_memory_order_acq_rel)) {
129 SkASSERT(fRefCnt > 0);
131 if (1 == sk_atomic_fetch_add(&fRefCnt, -1, sk_memory_order_acq_rel)) {
140 SkASSERT(fRefCnt > 0);
171 SkASSERT(0 == fRefCnt);
172 fRefCnt = 1;
184 SkASSERT(0 == fRefCnt);
185 fRefCnt = 1;
189 mutable int32_t fRefCnt;