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

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

Completed in 658 milliseconds