From a22e2117e44efa4298dd0eb6df304a8166c8e9c3 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Thu, 16 Aug 2012 14:58:06 +0000 Subject: Extended Inst counting to find "unknown" leaked object (SkTMaskGamma) http://codereview.appspot.com/6453127/ git-svn-id: http://skia.googlecode.com/svn/trunk@5123 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/UtilsTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/UtilsTest.cpp') diff --git a/tests/UtilsTest.cpp b/tests/UtilsTest.cpp index f1b1ea9139..1c2f870d1f 100644 --- a/tests/UtilsTest.cpp +++ b/tests/UtilsTest.cpp @@ -14,13 +14,19 @@ class RefClass : public SkRefCnt { public: + SK_DECLARE_INST_COUNT(RefClass) + RefClass(int n) : fN(n) {} int get() const { return fN; } private: int fN; + + typedef SkRefCnt INHERITED; }; +SK_DEFINE_INST_COUNT(RefClass) + static void test_refptr(skiatest::Reporter* reporter) { RefClass* r0 = new RefClass(0); -- cgit v1.2.3