Lines Matching refs:fPtr
26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {}
53 fPtr.reset(size ? sk_malloc_throw(size) : nullptr);
56 return fPtr.get();
62 void* get() { return fPtr.get(); } in get()
63 const void* get() const { return fPtr.get(); } in get()
71 return fPtr.release(); in release()
78 std::unique_ptr<void, WrapFree> fPtr; variable
96 fPtr = fStorage; in SkAutoSMalloc()
105 fPtr = fStorage; in SkAutoSMalloc()
115 if (fPtr != (void*)fStorage) { in ~SkAutoSMalloc()
116 sk_free(fPtr); in ~SkAutoSMalloc()
125 void* get() const { return fPtr; } in get()
141 if (fPtr != (void*)fStorage) {
142 sk_free(fPtr);
146 SkASSERT(fPtr != fStorage); // otherwise we lied when setting didChangeAlloc.
147 fPtr = fStorage;
149 fPtr = sk_malloc_throw(size);
155 SkASSERT((fPtr == fStorage) || fSize > kSize);
156 return fPtr;
171 void* fPtr; variable