Home
last modified time | relevance | path

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

/external/skia/include/utils/win/
DSkTScopedComPtr.h37 T *fPtr;
40 explicit SkTScopedComPtr(T *ptr = NULL) : fPtr(ptr) { } in fPtr() function
44 T &operator*() const { SkASSERT(fPtr != NULL); return *fPtr; }
46 return static_cast<SkBlockComRef<T>*>(fPtr);
54 T **operator&() { SkASSERT(fPtr == NULL); return &fPtr; }
55 T *get() const { return fPtr; } in get()
57 if (this->fPtr) { in reset()
58 this->fPtr->Release(); in reset()
59 this->fPtr = NULL; in reset()
64 T* temp = this->fPtr; in swap()
[all …]
/external/skia/include/core/
DSkTLazy.h26 SkTLazy() : fPtr(NULL) {} in SkTLazy()
28 explicit SkTLazy(const T* src) : fPtr(NULL) { in SkTLazy()
30 fPtr = new (fStorage) T(*src); in SkTLazy()
34 SkTLazy(const SkTLazy<T>& src) : fPtr(NULL) { in SkTLazy()
36 fPtr = new (fStorage) T(*src->get()); in SkTLazy()
38 fPtr = NULL; in SkTLazy()
44 fPtr->~T(); in ~SkTLazy()
56 fPtr->~T(); in init()
58 fPtr = new (SkTCast<T*>(fStorage)) T; in init()
59 return fPtr; in init()
[all …]
DSkTemplates.h356 fPtr = ptr;
361 fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW);
365 sk_free(fPtr);
370 fPtr = reinterpret_cast<T*>(sk_realloc_throw(fPtr, count * sizeof(T)));
375 sk_free(fPtr);
376 fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW);
379 T* get() const { return fPtr; }
382 return fPtr;
386 return fPtr;
390 return fPtr[index];
[all …]
DSkTypes.h468 SkAutoFree() : fPtr(NULL) {} in SkAutoFree()
469 explicit SkAutoFree(void* ptr) : fPtr(ptr) {} in SkAutoFree()
470 ~SkAutoFree() { sk_free(fPtr); } in ~SkAutoFree()
474 void* get() const { return fPtr; } in get()
481 void* prev = fPtr; in set()
482 fPtr = ptr; in set()
496 sk_free(fPtr); in free()
497 fPtr = NULL; in free()
501 void* fPtr;
516 fPtr = size ? sk_malloc_throw(size) : NULL;
[all …]
DSkLazyPtr.h123 T* ptr = consume_load(&fPtr); in get()
124 return ptr ? ptr : try_cas<T*, Destroy>(&fPtr, Create()); in get()
128 T* fPtr;
160 SkLazyPtr() : fPtr(NULL) {} in SkLazyPtr()
161 ~SkLazyPtr() { if (fPtr) { Destroy((T*)fPtr); } } in ~SkLazyPtr()
164 T* ptr = Private::consume_load(&fPtr); in get()
165 return ptr ? ptr : Private::try_cas<T*, Destroy>(&fPtr, SkNEW(T)); in get()
170 T* ptr = Private::consume_load(&fPtr); in get()
171 return ptr ? ptr : Private::try_cas<T*, Destroy>(&fPtr, create()); in get()
175 mutable T* fPtr;
DSkData.h35 const void* data() const { return fPtr; } in data()
42 return reinterpret_cast<const uint8_t*>(fPtr); in bytes()
55 return fPtr; in writable_data()
164 void* fPtr; variable
DSkTInternalLList.h18 SkPtrWrapper() : fPtr(NULL) {} in SkPtrWrapper()
19 SkPtrWrapper& operator =(T* ptr) { fPtr = ptr; return *this; }
20 operator T*() const { return fPtr; }
21 T* operator->() { return fPtr; }
23 T* fPtr;
DSkDataTable.h98 const void* fPtr; member
/external/clang/test/Analysis/inlining/
Dinline-defensive-checks.m71 int testNilReceiver(Foo* fPtr) {
72 if (fPtr)
74 // On a path where fPtr is nil, mem should be nil.
75 Foo *mem = [fPtr getFooPtr];
79 int suppressNilReceiverRetNullCond(Foo* fPtr) {
81 fPtr = retInputOrNil(fPtr);
82 // On a path where fPtr is nzil, mem should be nil.
83 Foo *mem = [fPtr getFooPtr];
87 int suppressNilReceiverRetNullCondCast(id fPtr) {
89 fPtr = retInputOrNil(fPtr);
[all …]
/external/skia/src/gpu/
DGrTemplates.h40 GrAutoTRestore() : fPtr(NULL), fVal() {} in GrAutoTRestore()
43 fPtr = ptr; in GrAutoTRestore()
50 if (fPtr) { in ~GrAutoTRestore()
51 *fPtr = fVal; in ~GrAutoTRestore()
57 if (fPtr) { in reset()
58 *fPtr = fVal; in reset()
60 fPtr = ptr; in reset()
64 T* fPtr;
/external/skia/src/pdf/
DSkPDFCanon.h81 explicit WrapGS(const SkPDFGraphicState* ptr = NULL) : fPtr(ptr) {} in fPtr() function
82 const SkPDFGraphicState* fPtr; member
84 SkASSERT(fPtr);
85 SkASSERT(rhs.fPtr);
86 return *fPtr == *rhs.fPtr;
89 SkASSERT(w.fPtr); in Hash()
90 return w.fPtr->hash(); in Hash()
DSkPDFCanon.cpp26 fGraphicStateRecords.foreach ([](WrapGS w) { w.fPtr->unref(); }); in reset()
112 return ptr ? ptr->fPtr : NULL; in findGraphicState()
/external/skia/src/core/
DSkPtrRecorder.cpp15 this->decPtr(p->fPtr); in reset()
22 return (char*)a.fPtr < (char*)b.fPtr; in Less()
32 pair.fPtr = ptr; in find()
48 pair.fPtr = ptr; in add()
71 array[index] = p[i].fPtr; in copyToArray()
DSkRecords.h141 Optional(T* ptr) : fPtr(ptr) {} in Optional()
142 ~Optional() { if (fPtr) fPtr->~T(); } in ~Optional()
144 ACT_AS_PTR(fPtr);
146 T* fPtr;
153 Adopted(T* ptr) : fPtr(ptr) { SkASSERT(fPtr); } in Adopted()
156 fPtr = source->fPtr; in Adopted()
157 source->fPtr = NULL; in Adopted()
159 ~Adopted() { if (fPtr) fPtr->~T(); } in ~Adopted()
161 ACT_AS_PTR(fPtr);
163 T* fPtr;
[all …]
DSkMetaData.cpp14 void* fPtr; member
50 if (pair->fProc && pair->fPtr) { in reset()
51 pair->fPtr = pair->fProc(pair->fPtr, false); in reset()
135 if (pair->fProc && pair->fPtr) { in set()
136 pair->fPtr = pair->fProc(pair->fPtr, true); in set()
191 *ptr = pair->fPtr; in findPtr()
259 if (pair->fProc && pair->fPtr) { in remove()
260 (void)pair->fProc(pair->fPtr, false); in remove()
DSkLazyFnPtr.h44 F fn = (F)sk_atomic_load(&fPtr, sk_memory_order_relaxed); in get()
53 F prev = (F)sk_atomic_cas(&fPtr, NULL, (void*)fn); in get()
61 void* fPtr;
DSkData.cpp16 fPtr = const_cast<void*>(ptr); in SkData()
27 fPtr = (char*)(this + 1); // contents are immediately after this in SkData()
35 fReleaseProc(fPtr, fSize, fReleaseProcContext); in ~SkData()
44 return fSize == other->fSize && !memcmp(fPtr, other->fPtr, fSize); in equals()
DSkRecordPattern.h15 Is() : fPtr(NULL) {} in Is()
18 type* get() { return fPtr; } in get()
21 fPtr = ptr; in operator()
27 fPtr = NULL; in operator()
32 type* fPtr;
DSkDataTable.cpp73 return fU.fDir[index].fPtr; in at()
105 dir[i].fPtr = elem; in NewCopyArrays()
166 dir->fPtr = dst; in append()
DSkPtrRecorder.h74 return fIndex < fSet.fList.count() ? fSet.fList[fIndex++].fPtr : NULL; in next()
88 void* fPtr; // never NULL member
/external/skia/tests/
DPixelRefTest.cpp8 explicit TestListener(int* ptr) : fPtr(ptr) {} in TestListener()
9 void onChange() override { (*fPtr)++; } in onChange()
11 int* fPtr; member in TestListener
/external/skia/include/gpu/gl/
DGrGLInterface.h102 GLPtr() : fPtr(NULL) {} in GLPtr()
103 GLPtr operator=(FNPTR_TYPE ptr) { fPtr = ptr; return *this; }
104 operator FNPTR_TYPE() const { return fPtr; } in FNPTR_TYPE()
106 FNPTR_TYPE fPtr;
/external/clang/test/Analysis/
Dmalloc.c1233 int fPtr(unsigned cond, int x) { in fPtr() function