Index: include/core/SkRefCnt.h |
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h |
index 5d394f0c2af2001bb2d48ff3c90b69df6be06a19..38b6d346608e6703f47091e4ed9efc3c105be239 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; |