Home | History | Annotate | Download | only in core

Lines Matching refs:SkRefPtr

134 template <typename T> class SkRefPtr {
136 SkRefPtr() : fObj(NULL) {}
137 SkRefPtr(T* obj) : fObj(obj) { SkSafeRef(fObj); }
138 SkRefPtr(const SkRefPtr& o) : fObj(o.fObj) { SkSafeRef(fObj); }
139 ~SkRefPtr() { SkSafeUnref(fObj); }
141 SkRefPtr& operator=(const SkRefPtr& rp) {
145 SkRefPtr& operator=(T* obj) {
154 typedef T* SkRefPtr::*unspecified_bool_type;
156 return fObj ? &SkRefPtr::fObj : NULL;