Home
last modified time | relevance | path

Searched refs:fObj (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/third_party/skia/include/core/
DSkRefCnt.h182 explicit SkAutoTUnref(T* obj = NULL) : fObj(obj) {} in fObj() function
183 ~SkAutoTUnref() { SkSafeUnref(fObj); } in ~SkAutoTUnref()
185 T* get() const { return fObj; } in get()
188 SkSafeUnref(fObj); in reset()
189 fObj = obj; in reset()
194 T* tmp = fObj; in swap()
195 fObj = other->fObj; in swap()
196 other->fObj = tmp; in swap()
206 T* obj = fObj; in detach()
207 fObj = NULL; in detach()
[all …]
DSkTemplates.h77 SkAutoTCallVProc(T* obj): fObj(obj) {}
78 ~SkAutoTCallVProc() { if (fObj) P(fObj); }
79 T* detach() { T* obj = fObj; fObj = NULL; return obj; }
81 T* fObj;
94 SkAutoTCallIProc(T* obj): fObj(obj) {}
95 ~SkAutoTCallIProc() { if (fObj) P(fObj); }
96 T* detach() { T* obj = fObj; fObj = NULL; return obj; }
98 T* fObj;
113 SkAutoTDelete(T* obj = NULL) : fObj(obj) {}
114 ~SkAutoTDelete() { SkDELETE(fObj); }
[all …]
DSkTLazy.h143 SkTCopyOnFirstWrite(const T& initial) : fObj(&initial) {} in SkTCopyOnFirstWrite()
146 SkTCopyOnFirstWrite() : fObj(NULL) {} in SkTCopyOnFirstWrite()
150 SkASSERT(NULL == fObj); in init()
152 fObj = &initial; in init()
159 SkASSERT(NULL != fObj); in writable()
161 fLazy.set(*fObj); in writable()
162 fObj = fLazy.get(); in writable()
164 return const_cast<T*>(fObj); in writable()
171 const T *operator->() const { return fObj; }
173 operator const T*() const { return fObj; }
[all …]
/external/skia/include/core/
DSkRefCnt.h182 explicit SkAutoTUnref(T* obj = NULL) : fObj(obj) {} in fObj() function
183 ~SkAutoTUnref() { SkSafeUnref(fObj); } in ~SkAutoTUnref()
185 T* get() const { return fObj; } in get()
188 SkSafeUnref(fObj); in reset()
189 fObj = obj; in reset()
194 T* tmp = fObj; in swap()
195 fObj = other->fObj; in swap()
196 other->fObj = tmp; in swap()
206 T* obj = fObj; in detach()
207 fObj = NULL; in detach()
[all …]
DSkTemplates.h77 SkAutoTCallVProc(T* obj): fObj(obj) {}
78 ~SkAutoTCallVProc() { if (fObj) P(fObj); }
79 T* detach() { T* obj = fObj; fObj = NULL; return obj; }
81 T* fObj;
94 SkAutoTCallIProc(T* obj): fObj(obj) {}
95 ~SkAutoTCallIProc() { if (fObj) P(fObj); }
96 T* detach() { T* obj = fObj; fObj = NULL; return obj; }
98 T* fObj;
113 SkAutoTDelete(T* obj = NULL) : fObj(obj) {}
114 ~SkAutoTDelete() { SkDELETE(fObj); }
[all …]
DSkTLazy.h143 SkTCopyOnFirstWrite(const T& initial) : fObj(&initial) {} in SkTCopyOnFirstWrite()
146 SkTCopyOnFirstWrite() : fObj(NULL) {} in SkTCopyOnFirstWrite()
150 SkASSERT(NULL == fObj); in init()
152 fObj = &initial; in init()
159 SkASSERT(NULL != fObj); in writable()
161 fLazy.set(*fObj); in writable()
162 fObj = fLazy.get(); in writable()
164 return const_cast<T*>(fObj); in writable()
171 const T *operator->() const { return fObj; }
173 operator const T*() const { return fObj; }
[all …]
/external/skia/src/core/
DSkTemplatesPriv.h52 SkAutoTPlacementDelete(T* obj, void* storage) : fObj(obj), fStorage(storage) in SkAutoTPlacementDelete()
57 if (fObj) in ~SkAutoTPlacementDelete()
59 if (fObj == fStorage) in ~SkAutoTPlacementDelete()
60 fObj->~T(); in ~SkAutoTPlacementDelete()
62 delete fObj; in ~SkAutoTPlacementDelete() local
67 T* obj = fObj; in detach()
68 fObj = NULL; in detach()
72 T* fObj;
DSkTLList.h35 char fObj[sizeof(T)]; member
57 SkTCast<T*>(node->fObj)->~T(); in ~SkTLList()
73 SkNEW_PLACEMENT_ARGS(node->fObj, T, (t)); in addToHead()
75 return reinterpret_cast<T*>(node->fObj); in addToHead()
82 SkNEW_PLACEMENT_ARGS(node->fObj, T, (t)); in addToTail()
84 return reinterpret_cast<T*>(node->fObj); in addToTail()
129 SkASSERT(reinterpret_cast<T*>(node->fObj) == t); in remove()
205 return reinterpret_cast<T*>(node->fObj); in nodeToObj()
250 SkTCast<T*>(node->fObj)->~T(); in removeNode()
331 return node->fObj; in internalAddBefore()
[all …]
DSkBlitter.cpp763 : fObj(obj), fProc(proc) {} in SkAutoCallProc()
766 if (fObj && fProc) { in ~SkAutoCallProc()
767 fProc(fObj); in ~SkAutoCallProc()
771 void* get() const { return fObj; } in get()
774 void* obj = fObj; in detach()
775 fObj = NULL; in detach()
780 void* fObj; member in SkAutoCallProc
/external/chromium_org/third_party/skia/src/core/
DSkTemplatesPriv.h52 SkAutoTPlacementDelete(T* obj, void* storage) : fObj(obj), fStorage(storage) in SkAutoTPlacementDelete()
57 if (fObj) in ~SkAutoTPlacementDelete()
59 if (fObj == fStorage) in ~SkAutoTPlacementDelete()
60 fObj->~T(); in ~SkAutoTPlacementDelete()
62 delete fObj; in ~SkAutoTPlacementDelete() local
67 T* obj = fObj; in detach()
68 fObj = NULL; in detach()
72 T* fObj;
DSkTLList.h35 char fObj[sizeof(T)]; member
57 SkTCast<T*>(node->fObj)->~T(); in ~SkTLList()
73 SkNEW_PLACEMENT_ARGS(node->fObj, T, (t)); in addToHead()
75 return reinterpret_cast<T*>(node->fObj); in addToHead()
82 SkNEW_PLACEMENT_ARGS(node->fObj, T, (t)); in addToTail()
84 return reinterpret_cast<T*>(node->fObj); in addToTail()
129 SkASSERT(reinterpret_cast<T*>(node->fObj) == t); in remove()
205 return reinterpret_cast<T*>(node->fObj); in nodeToObj()
250 SkTCast<T*>(node->fObj)->~T(); in removeNode()
331 return node->fObj; in internalAddBefore()
[all …]
DSkBlitter.cpp763 : fObj(obj), fProc(proc) {} in SkAutoCallProc()
766 if (fObj && fProc) { in ~SkAutoCallProc()
767 fProc(fObj); in ~SkAutoCallProc()
771 void* get() const { return fObj; } in get()
774 void* obj = fObj; in detach()
775 fObj = NULL; in detach()
780 void* fObj; member in SkAutoCallProc
/external/skia/bench/
DResultsWriter.h180 CallEnd(T& obj) : fObj(obj) {} in CallEnd()
181 ~CallEnd() { fObj.end(); } in ~CallEnd()
183 T& fObj;
/external/chromium_org/third_party/skia/src/pdf/
DSkPDFTypes.cpp74 SkPDFObjRef::SkPDFObjRef(SkPDFObject* obj) : fObj(obj) { in SkPDFObjRef()
83 catalog->emitObjectNumber(stream, fObj.get()); in emitObject()
89 return catalog->getObjectNumberSize(fObj.get()) + strlen(" R"); in getOutputSize()
DSkPDFTypes.h125 SkAutoTUnref<SkPDFObject> fObj;
/external/skia/src/pdf/
DSkPDFTypes.cpp74 SkPDFObjRef::SkPDFObjRef(SkPDFObject* obj) : fObj(obj) { in SkPDFObjRef()
83 catalog->emitObjectNumber(stream, fObj.get()); in emitObject()
89 return catalog->getObjectNumberSize(fObj.get()) + strlen(" R"); in getOutputSize()
DSkPDFTypes.h125 SkAutoTUnref<SkPDFObject> fObj;