Lines Matching refs:fRefCnt
33 SkRefCntBase() : fRefCnt(1) {} in SkRefCntBase()
41 fRefCnt.store(0, std::memory_order_relaxed); in ~SkRefCntBase()
48 return fRefCnt.load(std::memory_order_relaxed); in getRefCnt()
60 if (1 == fRefCnt.load(std::memory_order_acquire)) { in unique()
74 (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); in ref()
84 if (1 == fRefCnt.fetch_add(-1, std::memory_order_acq_rel)) { in unref()
99 fRefCnt.store(1, std::memory_order_relaxed); in internal_dispose_restore_refcnt_to_1()
115 mutable std::atomic<int32_t> fRefCnt; variable
211 SkNVRefCnt() : fRefCnt(1) {} in SkNVRefCnt()
219 bool unique() const { return 1 == fRefCnt.load(std::memory_order_acquire); } in unique()
220 void ref() const { (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); } in ref()
222 if (1 == fRefCnt.fetch_add(-1, std::memory_order_acq_rel)) { in unref()
224 SkDEBUGCODE(fRefCnt.store(1, std::memory_order_relaxed)); in unref()
231 mutable std::atomic<int32_t> fRefCnt;
233 return fRefCnt.load(std::memory_order_relaxed); in getRefCnt()