more SkInstCnt plumbing
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 26 Jun 2012 17:55:30 +0000 (17:55 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 26 Jun 2012 17:55:30 +0000 (17:55 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4344 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkTypeface.h
include/core/SkWeakRefCnt.h
src/core/SkRefCnt.cpp
src/core/SkTypeface.cpp

index 0d3ae81..9693219 100644 (file)
@@ -31,6 +31,8 @@ typedef uint32_t SkFontTableTag;
 */
 class SK_API SkTypeface : public SkWeakRefCnt {
 public:
+    SK_DECLARE_INST_COUNT(SkTypeface)
+
     /** Style specifies the intrinsic style attributes of a given typeface
     */
     enum Style {
index a407623..e6871fe 100644 (file)
@@ -51,6 +51,8 @@
 */
 class SK_API SkWeakRefCnt : public SkRefCnt {
 public:
+    SK_DECLARE_INST_COUNT(SkWeakRefCnt)
+
     /** Default construct, initializing the reference counts to 1.
         The strong references collectively hold one weak reference. When the
         strong reference count goes to zero, the collectively held weak
index 599e7f2..773e0d9 100644 (file)
@@ -7,6 +7,8 @@
 
 
 #include "SkRefCnt.h"
+#include "SkWeakRefCnt.h"
 
 SK_DEFINE_INST_COUNT(SkRefCnt)
+SK_DEFINE_INST_COUNT(SkWeakRefCnt)
 
index 77ad9ce..66e7904 100644 (file)
@@ -11,6 +11,8 @@
 #include "SkTypeface.h"
 #include "SkFontHost.h"
 
+SK_DEFINE_INST_COUNT(SkTypeface)
+
 //#define TRACE_LIFECYCLE
 
 #ifdef TRACE_LIFECYCLE