Searched defs:SkAutoTUnref (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/third_party/skia/include/core/
H A DSkRefCnt.h182 template <typename T> class SkAutoTUnref : SkNoncopyable { class in inherits:SkNoncopyable
184 explicit SkAutoTUnref(T* obj = NULL) : fObj(obj) {} function in class:SkAutoTUnref
185 ~SkAutoTUnref() { SkSafeUnref(fObj); }
195 void swap(SkAutoTUnref* other) {
229 * SkAutoTUnref assumes ownership of the ref. As a result, it is an error
230 * for the user to ref or unref through SkAutoTUnref. Therefore
231 * SkAutoTUnref::operator-> returns BlockRef<T>*. This prevents use of
242 // Can't use the #define trick below to guard a bare SkAutoTUnref(...) because it's templated. :(
244 class SkAutoUnref : public SkAutoTUnref<SkRefCnt> {
246 SkAutoUnref(SkRefCnt* obj) : SkAutoTUnref<SkRefCn
[all...]
/external/skia/include/core/
H A DSkRefCnt.h183 template <typename T> class SkAutoTUnref : SkNoncopyable { class in inherits:SkNoncopyable
185 explicit SkAutoTUnref(T* obj = NULL) : fObj(obj) {} function in class:SkAutoTUnref
186 ~SkAutoTUnref() { SkSafeUnref(fObj); }
196 void swap(SkAutoTUnref* other) {
230 * SkAutoTUnref assumes ownership of the ref. As a result, it is an error
231 * for the user to ref or unref through SkAutoTUnref. Therefore
232 * SkAutoTUnref::operator-> returns BlockRef<T>*. This prevents use of
243 // Can't use the #define trick below to guard a bare SkAutoTUnref(...) because it's templated. :(
245 class SkAutoUnref : public SkAutoTUnref<SkRefCnt> {
247 SkAutoUnref(SkRefCnt* obj) : SkAutoTUnref<SkRefCn
[all...]

Completed in 50 milliseconds