Index: include/core/SkRefCnt.h |
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h |
index 9b246f4f5499eeed6bfa12ad596beb275bd0b545..930bf8668b262512f4e996895a9076871235b541 100644 |
--- a/include/core/SkRefCnt.h |
+++ b/include/core/SkRefCnt.h |
@@ -262,6 +262,7 @@ public: |
bool unique() const { return 1 == sk_acquire_load(&fRefCnt); } |
void ref() const { sk_atomic_inc(&fRefCnt); } |
void unref() const { if (1 == sk_atomic_dec(&fRefCnt)) { SkDELETE((const Derived*)this); } } |
+ void deref() const { this->unref(); } // Chrome prefers to call deref(). |
private: |
mutable int32_t fRefCnt; |
}; |