don't add SkViewRegistry to SkInstCnt
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 26 Jun 2012 19:54:52 +0000 (19:54 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 26 Jun 2012 19:54:52 +0000 (19:54 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4351 2bbb7eff-a529-9590-31e7-b0007b416f81

samplecode/SampleCode.h

index 0a582cb..b60e961 100644 (file)
@@ -47,7 +47,7 @@ public:
 
 // interface that constructs SkViews
 class SkViewFactory : public SkRefCnt {
-public:
+public:    
     virtual SkView* operator() () const = 0;
 };
 
@@ -83,6 +83,8 @@ private:
 
 class SkViewRegister : public SkRefCnt {
 public:
+    SK_DECLARE_INST_COUNT(SkViewRegister)
+    
     explicit SkViewRegister(SkViewFactory*);
     explicit SkViewRegister(SkViewCreateFunc);
     explicit SkViewRegister(GMFactoryFunc);