Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrPendingProgramElement.h21 GrPendingProgramElement() : fObj(nullptr) { } in GrPendingProgramElement()
24 explicit GrPendingProgramElement(T* obj) : fObj(obj) { in GrPendingProgramElement()
34 if (fObj) { in reset()
35 fObj->completedExecution(); in reset()
37 fObj = obj; in reset()
40 T* get() const { return fObj; } in get()
41 operator T*() { return fObj; }
43 T *operator->() const { return fObj; }
46 if (fObj) { in ~GrPendingProgramElement()
47 fObj->completedExecution(); in ~GrPendingProgramElement()
[all …]
/external/skia/include/core/
DSkTLazy.h132 SkTCopyOnFirstWrite(const T& initial) : fObj(&initial) {} in SkTCopyOnFirstWrite()
134 SkTCopyOnFirstWrite(const T* initial) : fObj(initial) {} in SkTCopyOnFirstWrite()
137 SkTCopyOnFirstWrite() : fObj(nullptr) {} in SkTCopyOnFirstWrite()
141 SkASSERT(nullptr == fObj); in init()
143 fObj = &initial; in init()
150 SkASSERT(fObj); in writable()
152 fLazy.set(*fObj); in writable()
153 fObj = fLazy.get(); in writable()
155 return const_cast<T*>(fObj); in writable()
162 const T *operator->() const { return fObj; }
[all …]
/external/skia/src/core/
DSkTLList.h34 char fObj[sizeof(T)]; member
53 SkTCast<T*>(node->fObj)->~T(); in ~SkTLList()
73 return new (node->fObj) T(std::forward<Args>(args)...); in addToHead()
82 return new (node->fObj) T(std::forward<Args>(args)...); in addToTail()
92 return new (node->fObj) T(std::forward<Args>(args)...); in addBefore()
102 return new (node->fObj) T(std::forward<Args>(args)...); in addAfter()
135 SkASSERT(reinterpret_cast<T*>(node->fObj) == t); in remove()
212 return reinterpret_cast<T*>(node->fObj); in nodeToObj()
266 SkTCast<T*>(node->fObj)->~T(); in removeNode()