Home
last modified time | relevance | path

Searched refs:fWeakCnt (Results 1 – 1 of 1) sorted by relevance

/external/skia/include/private/
DSkWeakRefCnt.h59 SkWeakRefCnt() : SkRefCnt(), fWeakCnt(1) {} in SkWeakRefCnt()
65 SkASSERT(fWeakCnt == 1); in ~SkWeakRefCnt()
66 fWeakCnt = 0; in ~SkWeakRefCnt()
72 int32_t getWeakCnt() const { return fWeakCnt; } in getWeakCnt()
77 SkASSERT(fWeakCnt > 0); in validate()
103 SkASSERT(fWeakCnt > 0); in weak_ref()
104 sk_atomic_inc(&fWeakCnt); // No barrier required. in weak_ref()
113 SkASSERT(fWeakCnt > 0); in weak_unref()
115 if (sk_atomic_dec(&fWeakCnt) == 1) { in weak_unref()
121 fWeakCnt = 1; in weak_unref()
[all …]