Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/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 (NULL != 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/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 (NULL != 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.h316 fPtr = ptr;
321 fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP);
325 sk_free(fPtr);
330 fPtr = reinterpret_cast<T*>(sk_realloc_throw(fPtr, count * sizeof(T)));
335 sk_free(fPtr);
336 fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP);
339 T* get() const { return fPtr; }
342 return fPtr;
346 return fPtr;
350 return fPtr[index];
[all …]
DSkTypes.h423 SkAutoFree() : fPtr(NULL) {} in SkAutoFree()
424 explicit SkAutoFree(void* ptr) : fPtr(ptr) {} in SkAutoFree()
425 ~SkAutoFree() { sk_free(fPtr); } in ~SkAutoFree()
429 void* get() const { return fPtr; } in get()
436 void* prev = fPtr; in set()
437 fPtr = ptr; in set()
451 sk_free(fPtr); in free()
452 fPtr = NULL; in free()
456 void* fPtr;
471 fPtr = size ? sk_malloc_throw(size) : NULL;
[all …]
DSkData.h37 const void* data() const { return fPtr; } in data()
44 return reinterpret_cast<const uint8_t*>(fPtr); in bytes()
133 const 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;
/external/chromium_org/third_party/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.h316 fPtr = ptr;
321 fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP);
325 sk_free(fPtr);
330 fPtr = reinterpret_cast<T*>(sk_realloc_throw(fPtr, count * sizeof(T)));
335 sk_free(fPtr);
336 fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP);
339 T* get() const { return fPtr; }
342 return fPtr;
346 return fPtr;
350 return fPtr[index];
[all …]
DSkTypes.h423 SkAutoFree() : fPtr(NULL) {} in SkAutoFree()
424 explicit SkAutoFree(void* ptr) : fPtr(ptr) {} in SkAutoFree()
425 ~SkAutoFree() { sk_free(fPtr); } in ~SkAutoFree()
429 void* get() const { return fPtr; } in get()
436 void* prev = fPtr; in set()
437 fPtr = ptr; in set()
451 sk_free(fPtr); in free()
452 fPtr = NULL; in free()
456 void* fPtr;
471 fPtr = size ? sk_malloc_throw(size) : NULL;
[all …]
DSkData.h37 const void* data() const { return fPtr; } in data()
44 return reinterpret_cast<const uint8_t*>(fPtr); in bytes()
133 const 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;
/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 (NULL != fPtr) { in ~GrAutoTRestore()
51 *fPtr = fVal; in ~GrAutoTRestore()
57 if (NULL != fPtr) { in reset()
58 *fPtr = fVal; in reset()
60 fPtr = ptr; in reset()
64 T* fPtr;
DGrAllocPool.cpp16 char* fPtr; member
25 block->fPtr = (char*)block + sizeof(Block); in Create()
38 void* ptr = fPtr; in alloc()
39 fPtr += bytes; in alloc()
47 fPtr -= free; in release()
/external/chromium_org/third_party/skia/src/gpu/
DGrTemplates.h40 GrAutoTRestore() : fPtr(NULL), fVal() {} in GrAutoTRestore()
43 fPtr = ptr; in GrAutoTRestore()
50 if (NULL != fPtr) { in ~GrAutoTRestore()
51 *fPtr = fVal; in ~GrAutoTRestore()
57 if (NULL != fPtr) { in reset()
58 *fPtr = fVal; in reset()
60 fPtr = ptr; in reset()
64 T* fPtr;
DGrAllocPool.cpp16 char* fPtr; member
25 block->fPtr = (char*)block + sizeof(Block); in Create()
38 void* ptr = fPtr; in alloc()
39 fPtr += bytes; in alloc()
47 fPtr -= free; in release()
/external/chromium_org/third_party/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()
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()
DSkData.cpp14 fPtr = ptr; in SkData()
22 fReleaseProc(fPtr, fSize, fReleaseProcContext); in ~SkData()
31 return fSize == other->fSize && !memcmp(fPtr, other->fPtr, fSize); in equals()
DSkDataTable.cpp73 return fU.fDir[index].fPtr; in at()
105 dir[i].fPtr = elem; in NewCopyArrays()
166 dir->fPtr = dst; in append()
/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()
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()
DSkData.cpp14 fPtr = ptr; in SkData()
22 fReleaseProc(fPtr, fSize, fReleaseProcContext); in ~SkData()
31 return fSize == other->fSize && !memcmp(fPtr, other->fPtr, fSize); in equals()
/external/skia/tests/
DPixelRefTest.cpp45 explicit TestListener(int* ptr) : fPtr(ptr) {} in TestListener()
46 void onChange() SK_OVERRIDE { (*fPtr)++; } in onChange()
48 int* fPtr; member in __anon7d0825a40211::TestListener

12