/external/chromium_org/third_party/skia/include/gpu/ |
GrProgramElement.h | 31 // fRefCnt can be one when an effect is created statically using GR_CREATE_STATIC_EFFECT 32 SkASSERT((0 == fRefCnt || 1 == fRefCnt) && 0 == fPendingExecutions); 34 SkDEBUGCODE(fRefCnt = fPendingExecutions = -10;) 39 SkASSERT(fRefCnt > 0); 41 ++fRefCnt; 46 --fRefCnt; 47 if (0 == fRefCnt && 0 == fPendingExecutions) { 59 SkASSERT(fRefCnt >= 0); 61 SkASSERT(fRefCnt + fPendingExecutions > 0) [all...] |
GrGpuResource.h | 55 ++fRefCnt; 62 --fRefCnt; 63 if (0 == fRefCnt && 0 == fPendingReads && 0 == fPendingWrites) { 72 bool unique() const { return 1 == (fRefCnt + fPendingReads + fPendingWrites); } 76 SkASSERT(fRefCnt >= 0); 79 SkASSERT(fRefCnt + fPendingReads + fPendingWrites > 0); 85 GrIORef() : fRefCnt(1), fPendingReads(0), fPendingWrites(0) {} 100 if (0 == fRefCnt && 0 == fPendingReads && 0 == fPendingWrites) { 113 if (0 == fRefCnt && 0 == fPendingReads && 0 == fPendingWrites) { 119 mutable int32_t fRefCnt; [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkRefCnt.h | 34 SkRefCntBase() : fRefCnt(1) {} 40 SkASSERTF(fRefCnt == 1, "fRefCnt was %d", fRefCnt); 41 fRefCnt = 0; // illegal value, to catch us if we reuse after delete 46 int32_t getRefCnt() const { return fRefCnt; } 52 // We believe we're reading fRefCnt in a safe way here, so we stifle the TSAN warning about 53 // an unproctected read. Generally, don't read fRefCnt, and don't stifle this warning. 54 bool const unique = (1 == SK_ANNOTATE_UNPROTECTED_READ(fRefCnt)); 56 // Acquire barrier (L/SL), if not provided by load of fRefCnt [all...] |
SkWeakRefCnt.h | 91 if (sk_atomic_conditional_inc(&fRefCnt) != 0) { 104 SkASSERT(fRefCnt > 0); 133 return fRefCnt == 0; 155 /* Invariant: fWeakCnt = #weak + (fRefCnt > 0 ? 1 : 0) */
|
SkString.h | 216 int32_t fRefCnt;
|
/external/chromium_org/third_party/skia/src/gpu/ |
GrProgramElement.cpp | 25 SkASSERT(fRefCnt > 0); 33 if (0 == fRefCnt) { 44 if (0 == fRefCnt) {
|
GrGpuResource.cpp | 15 SkASSERT(0 == fRefCnt); 19 SkDEBUGCODE(fRefCnt = fPendingReads = fPendingWrites = -10;)
|
/external/skia/include/core/ |
SkRefCnt.h | 34 SkRefCntBase() : fRefCnt(1) {} 40 SkASSERTF(fRefCnt == 1, "fRefCnt was %d", fRefCnt); 41 fRefCnt = 0; // illegal value, to catch us if we reuse after delete 46 int32_t getRefCnt() const { return fRefCnt; } 52 // We believe we're reading fRefCnt in a safe way here, so we stifle the TSAN warning about 53 // an unproctected read. Generally, don't read fRefCnt, and don't stifle this warning. 54 bool const unique = (1 == SK_ANNOTATE_UNPROTECTED_READ(fRefCnt)); 56 // Acquire barrier (L/SL), if not provided by load of fRefCnt [all...] |
SkWeakRefCnt.h | 91 if (sk_atomic_conditional_inc(&fRefCnt) != 0) { 104 SkASSERT(fRefCnt > 0); 133 return fRefCnt == 0; 155 /* Invariant: fWeakCnt = #weak + (fRefCnt > 0 ? 1 : 0) */
|
SkString.h | 215 int32_t fRefCnt;
|
/external/chromium_org/third_party/skia/src/core/ |
SkRegionPriv.h | 40 int32_t fRefCnt; 69 head->fRefCnt = 1; 88 SkASSERT(fRefCnt == 1); 98 if (fRefCnt > 1) { 109 if (sk_atomic_dec(&fRefCnt) == 1) {
|
SkString.cpp | 219 rec->fRefCnt = 1; 230 sk_atomic_inc(&src->fRefCnt); 239 SkASSERT(0 == gEmptyRec.fRefCnt); 244 SkASSERT(fRec->fRefCnt > 0); 295 SkASSERT(fRec->fRefCnt > 0); 296 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { 339 SkASSERT(fRec->fRefCnt > 0); 340 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { 355 if (fRec->fRefCnt > 1) { 357 if (sk_atomic_dec(&fRec->fRefCnt) == 1) [all...] |
SkRegion.cpp | 93 SkASSERT(fRunHead->fRefCnt >= 1); 94 if (sk_atomic_dec(&fRunHead->fRefCnt) == 1) { 165 sk_atomic_inc(&fRunHead->fRefCnt); [all...] |
SkAAClip.cpp | 59 int32_t fRefCnt; 79 head->fRefCnt = 1; 197 SkASSERT(head->fRefCnt > 0); 619 SkASSERT(fRunHead->fRefCnt >= 1); 620 if (1 == sk_atomic_dec(&fRunHead->fRefCnt)) { 650 sk_atomic_inc(&fRunHead->fRefCnt); [all...] |
/external/skia/src/core/ |
SkRegionPriv.h | 40 int32_t fRefCnt; 69 head->fRefCnt = 1; 88 SkASSERT(fRefCnt == 1); 98 if (fRefCnt > 1) { 109 if (sk_atomic_dec(&fRefCnt) == 1) {
|
SkString.cpp | 219 rec->fRefCnt = 1; 230 sk_atomic_inc(&src->fRefCnt); 239 SkASSERT(0 == gEmptyRec.fRefCnt); 244 SkASSERT(fRec->fRefCnt > 0); 295 SkASSERT(fRec->fRefCnt > 0); 296 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { 339 SkASSERT(fRec->fRefCnt > 0); 340 if (sk_atomic_dec(&fRec->fRefCnt) == 1) { 355 if (fRec->fRefCnt > 1) { 357 if (sk_atomic_dec(&fRec->fRefCnt) == 1) [all...] |
SkRegion.cpp | 93 SkASSERT(fRunHead->fRefCnt >= 1); 94 if (sk_atomic_dec(&fRunHead->fRefCnt) == 1) { 165 sk_atomic_inc(&fRunHead->fRefCnt); [all...] |
SkAAClip.cpp | 59 int32_t fRefCnt; 79 head->fRefCnt = 1; 197 SkASSERT(head->fRefCnt > 0); 579 SkASSERT(fRunHead->fRefCnt >= 1); 580 if (1 == sk_atomic_dec(&fRunHead->fRefCnt)) { 610 sk_atomic_inc(&fRunHead->fRefCnt); [all...] |
/external/skia/src/gpu/ |
GrTexture.cpp | 32 this->fRefCnt = 1; // restore ref count to initial setting
|
/external/chromium_org/third_party/skia/src/ports/ |
SkFontHost_FreeType.cpp | 240 uint32_t fRefCnt; 282 : fNext(NULL), fSkStream(strm), fRefCnt(1), fFontID(fontID) { 300 rec->fRefCnt += 1; 351 if (--rec->fRefCnt == 0) { [all...] |
/external/skia/src/ports/ |
SkFontHost_FreeType.cpp | 241 uint32_t fRefCnt; 283 : fNext(NULL), fSkStream(strm), fRefCnt(1), fFontID(fontID) { 301 rec->fRefCnt += 1; 352 if (--rec->fRefCnt == 0) { [all...] |