/external/chromium_org/third_party/skia/include/core/ |
D | SkRefCnt.h | 33 SkRefCntBase() : fRefCnt(1) {} in SK_DECLARE_INST_COUNT_ROOT() 39 SkASSERT(fRefCnt == 1); in ~SkRefCntBase() 40 fRefCnt = 0; // illegal value, to catch us if we reuse after delete in ~SkRefCntBase() 45 int32_t getRefCnt() const { return fRefCnt; } in getRefCnt() 51 bool const unique = (1 == fRefCnt); in unique() 63 SkASSERT(fRefCnt > 0); in ref() 64 sk_atomic_inc(&fRefCnt); // No barrier required. in ref() 72 SkASSERT(fRefCnt > 0); in unref() 74 if (sk_atomic_dec(&fRefCnt) == 1) { in unref() 84 SkASSERT(fRefCnt > 0); in validate() [all …]
|
D | SkWeakRefCnt.h | 91 if (sk_atomic_conditional_inc(&fRefCnt) != 0) { in try_ref() 104 SkASSERT(fRefCnt > 0); in weak_ref() 133 return fRefCnt == 0; in weak_expired()
|
D | SkString.h | 219 int32_t fRefCnt; member
|
/external/skia/include/core/ |
D | SkRefCnt.h | 33 SkRefCntBase() : fRefCnt(1) {} in SK_DECLARE_INST_COUNT_ROOT() 39 SkASSERT(fRefCnt == 1); in ~SkRefCntBase() 40 fRefCnt = 0; // illegal value, to catch us if we reuse after delete in ~SkRefCntBase() 45 int32_t getRefCnt() const { return fRefCnt; } in getRefCnt() 51 bool const unique = (1 == fRefCnt); in unique() 63 SkASSERT(fRefCnt > 0); in ref() 64 sk_atomic_inc(&fRefCnt); // No barrier required. in ref() 72 SkASSERT(fRefCnt > 0); in unref() 74 if (sk_atomic_dec(&fRefCnt) == 1) { in unref() 84 SkASSERT(fRefCnt > 0); in validate() [all …]
|
D | SkWeakRefCnt.h | 91 if (sk_atomic_conditional_inc(&fRefCnt) != 0) { in try_ref() 104 SkASSERT(fRefCnt > 0); in weak_ref() 133 return fRefCnt == 0; in weak_expired()
|
D | SkString.h | 219 int32_t fRefCnt; member
|
/external/skia/src/core/ |
D | SkString.cpp | 219 rec->fRefCnt = 1; in AllocRec() 230 sk_atomic_inc(&src->fRefCnt); in RefRec() 239 SkASSERT(0 == gEmptyRec.fRefCnt); in validate() 244 SkASSERT(fRec->fRefCnt > 0); in validate() 295 SkASSERT(fRec->fRefCnt > 0); in ~SkString() 296 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { in ~SkString() 339 SkASSERT(fRec->fRefCnt > 0); in reset() 340 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { in reset() 355 if (fRec->fRefCnt > 1) { in writable_str() 357 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { in writable_str() [all …]
|
D | SkRegionPriv.h | 40 int32_t fRefCnt; 69 head->fRefCnt = 1; in Alloc() 88 SkASSERT(fRefCnt == 1); in writable_runs() 98 if (fRefCnt > 1) { in ensureWritable() 109 if (sk_atomic_dec(&fRefCnt) == 1) { in ensureWritable()
|
D | SkAAClip.cpp | 59 int32_t fRefCnt; member 79 head->fRefCnt = 1; in Alloc() 197 SkASSERT(head->fRefCnt > 0); in validate() 579 SkASSERT(fRunHead->fRefCnt >= 1); in freeRuns() 580 if (1 == sk_atomic_dec(&fRunHead->fRefCnt)) { in freeRuns() 610 sk_atomic_inc(&fRunHead->fRefCnt); in operator =() 1747 sk_atomic_inc(&fRunHead->fRefCnt); in translate()
|
D | SkBitmap.cpp | 38 int32_t fRefCnt; member 55 mm->fRefCnt = 1; in Alloc() 67 if (SK_MaxS32 == sk_atomic_inc(&fRefCnt)) { in ref() 72 SkASSERT(fRefCnt > 0); in unref() 73 if (sk_atomic_dec(&fRefCnt) == 1) { in unref()
|
D | SkRegion.cpp | 93 SkASSERT(fRunHead->fRefCnt >= 1); in freeRuns() 94 if (sk_atomic_dec(&fRunHead->fRefCnt) == 1) { in freeRuns() 165 sk_atomic_inc(&fRunHead->fRefCnt); in setRegion() 1245 SkASSERT(fRunHead->fRefCnt >= 1); in validate()
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkString.cpp | 219 rec->fRefCnt = 1; in AllocRec() 230 sk_atomic_inc(&src->fRefCnt); in RefRec() 239 SkASSERT(0 == gEmptyRec.fRefCnt); in validate() 244 SkASSERT(fRec->fRefCnt > 0); in validate() 295 SkASSERT(fRec->fRefCnt > 0); in ~SkString() 296 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { in ~SkString() 339 SkASSERT(fRec->fRefCnt > 0); in reset() 340 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { in reset() 355 if (fRec->fRefCnt > 1) { in writable_str() 357 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { in writable_str() [all …]
|
D | SkRegionPriv.h | 40 int32_t fRefCnt; 69 head->fRefCnt = 1; in Alloc() 88 SkASSERT(fRefCnt == 1); in writable_runs() 98 if (fRefCnt > 1) { in ensureWritable() 109 if (sk_atomic_dec(&fRefCnt) == 1) { in ensureWritable()
|
D | SkAAClip.cpp | 59 int32_t fRefCnt; member 79 head->fRefCnt = 1; in Alloc() 197 SkASSERT(head->fRefCnt > 0); in validate() 579 SkASSERT(fRunHead->fRefCnt >= 1); in freeRuns() 580 if (1 == sk_atomic_dec(&fRunHead->fRefCnt)) { in freeRuns() 610 sk_atomic_inc(&fRunHead->fRefCnt); in operator =() 1747 sk_atomic_inc(&fRunHead->fRefCnt); in translate()
|
D | SkBitmap.cpp | 38 int32_t fRefCnt; member 55 mm->fRefCnt = 1; in Alloc() 67 if (SK_MaxS32 == sk_atomic_inc(&fRefCnt)) { in ref() 72 SkASSERT(fRefCnt > 0); in unref() 73 if (sk_atomic_dec(&fRefCnt) == 1) { in unref()
|
D | SkRegion.cpp | 93 SkASSERT(fRunHead->fRefCnt >= 1); in freeRuns() 94 if (sk_atomic_dec(&fRunHead->fRefCnt) == 1) { in freeRuns() 165 sk_atomic_inc(&fRunHead->fRefCnt); in setRegion() 1245 SkASSERT(fRunHead->fRefCnt >= 1); in validate()
|
/external/chromium_org/third_party/skia/src/gpu/ |
D | GrTexture.cpp | 33 this->fRefCnt = 1; // restore ref count to initial setting in internal_dispose()
|
/external/skia/src/gpu/ |
D | GrTexture.cpp | 33 this->fRefCnt = 1; // restore ref count to initial setting in internal_dispose()
|
/external/chromium_org/third_party/skia/src/ports/ |
D | SkFontHost_FreeType.cpp | 228 uint32_t fRefCnt; member 270 : fNext(NULL), fSkStream(strm), fRefCnt(1), fFontID(fontID) { in SkFaceRec() 288 rec->fRefCnt += 1; in ref_ft_face() 339 if (--rec->fRefCnt == 0) { in unref_ft_face()
|
/external/skia/src/ports/ |
D | SkFontHost_FreeType.cpp | 230 uint32_t fRefCnt; member 272 : fNext(NULL), fSkStream(strm), fRefCnt(1), fFontID(fontID) { in SkFaceRec() 290 rec->fRefCnt += 1; in ref_ft_face() 341 if (--rec->fRefCnt == 0) { in unref_ft_face()
|