Home
last modified time | relevance | path

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

/external/skia/include/core/
DSkRefCnt.h109 explicit SkAutoTUnref(T* obj = NULL) : fObj(obj) {} in fObj() function
110 ~SkAutoTUnref() { SkSafeUnref(fObj); } in ~SkAutoTUnref()
112 T* get() const { return fObj; } in get()
115 SkSafeUnref(fObj); in reset()
116 fObj = obj; in reset()
126 T* obj = fObj; in detach()
127 fObj = NULL; in detach()
132 T* fObj;
142 SkAutoRef(SkRefCnt* obj) : fObj(obj) { SkSafeRef(obj); } in SkAutoRef()
143 ~SkAutoRef() { SkSafeUnref(fObj); } in ~SkAutoRef()
[all …]
DSkTScopedPtr.h27 explicit SkTScopedPtr(T* o = NULL) : fObj(o) {} in fObj() function
30 delete fObj; in ~SkTScopedPtr() local
37 if (o != fObj) {
39 delete fObj; variable
40 fObj = o;
48 T* retVal = fObj; in release()
49 fObj = NULL; in release()
54 SkASSERT(fObj != NULL);
55 return *fObj;
58 SkASSERT(fObj != NULL);
[all …]
DSkTemplates.h31 SkAutoTCallVProc(T* obj): fObj(obj) {} in SkAutoTCallVProc()
32 ~SkAutoTCallVProc() { if (fObj) P(fObj); } in ~SkAutoTCallVProc()
33 T* detach() { T* obj = fObj; fObj = NULL; return obj; } in detach()
35 T* fObj;
48 SkAutoTCallIProc(T* obj): fObj(obj) {} in SkAutoTCallIProc()
49 ~SkAutoTCallIProc() { if (fObj) P(fObj); } in ~SkAutoTCallIProc()
50 T* detach() { T* obj = fObj; fObj = NULL; return obj; } in detach()
52 T* fObj;
58 SkAutoTDelete(T* obj, bool deleteWhenDone = true) : fObj(obj) { in fObj() function
61 ~SkAutoTDelete() { if (fDeleteWhenDone) delete fObj; } in ~SkAutoTDelete() local
[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;
DSkBlitter.cpp747 : fObj(obj), fProc(proc) {} in SkAutoCallProc()
750 if (fObj && fProc) { in ~SkAutoCallProc()
751 fProc(fObj); in ~SkAutoCallProc()
755 void* get() const { return fObj; } in get()
758 void* obj = fObj; in detach()
759 fObj = NULL; in detach()
764 void* fObj; member in SkAutoCallProc
/external/skia/src/pdf/
DSkPDFTypes.cpp67 SkPDFObjRef::SkPDFObjRef(SkPDFObject* obj) : fObj(obj) {} in SkPDFObjRef()
73 catalog->emitObjectNumber(stream, fObj.get()); in emitObject()
79 return catalog->getObjectNumberSize(fObj.get()) + strlen(" R"); in getOutputSize()
/external/skia/src/ports/
DSkFontHost_mac_coretext.cpp43 AutoCFRelease(CFTypeRef obj) : fObj(obj) {} in AutoCFRelease()
44 ~AutoCFRelease() { CFSafeRelease(fObj); } in ~AutoCFRelease()
47 CFTypeRef fObj; member in AutoCFRelease
327 AutoCFDataRelease(CFDataRef obj) : fObj(obj) {} in AutoCFDataRelease()
329 return fObj ? (const uint16_t*) CFDataGetBytePtr(fObj) : NULL; in getShortPtr()
331 ~AutoCFDataRelease() { CFSafeRelease(fObj); } in ~AutoCFDataRelease()
333 CFDataRef fObj; member in AutoCFDataRelease
/external/skia/include/pdf/
DSkPDFTypes.h114 SkRefPtr<SkPDFObject> fObj;