diff options
author | Mike Klein <mtklein@google.com> | 2014-11-24 17:31:54 -0500 |
---|---|---|
committer | Mike Klein <mtklein@google.com> | 2014-11-24 17:31:54 -0500 |
commit | 89ff0846fd9dacf5f081373746624d450a5f8c26 (patch) | |
tree | 37161254bb69905e26e4601b5a79c78a5e635088 | |
parent | a2a5cd440515c485ee5939640be9fc2fba403766 (diff) |
Blink hasn't rolled yet, better.
BUG=skia:
Review URL: https://codereview.chromium.org/758693002
-rw-r--r-- | include/core/SkRefCnt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index 5d394f0c2a..38b6d34660 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -42,10 +42,10 @@ public: #endif } -#ifdef SK_DEBUG +//#ifdef SK_DEBUG /** Return the reference count. Use only for debugging. */ int32_t getRefCnt() const { return fRefCnt; } -#endif +//#endif /** May return true if the caller is the only owner. * Ensures that all previous owner's actions are complete. @@ -273,6 +273,7 @@ public: } } void deref() const { this->unref(); } // Chrome prefers to call deref(). + int32_t getRefCnt() const { return fRefCnt; } private: mutable int32_t fRefCnt; |