Home
last modified time | relevance | path

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

/external/skia/include/core/
DSkWeakRefCnt.h61 SkWeakRefCnt() : SkRefCnt(), fWeakCnt(1) {} in SK_DECLARE_INST_COUNT()
67 SkASSERT(fWeakCnt == 1); in ~SkWeakRefCnt()
68 fWeakCnt = 0; in ~SkWeakRefCnt()
74 int32_t getWeakCnt() const { return fWeakCnt; } in getWeakCnt()
79 SkASSERT(fWeakCnt > 0); in validate()
105 SkASSERT(fWeakCnt > 0); in weak_ref()
106 sk_atomic_inc(&fWeakCnt); // No barrier required. in weak_ref()
115 SkASSERT(fWeakCnt > 0); in weak_unref()
117 if (sk_atomic_dec(&fWeakCnt) == 1) { in weak_unref()
123 fWeakCnt = 1; in weak_unref()
[all …]