don't add SkViewRegistry to SkInstCnt
git-svn-id: http://skia.googlecode.com/svn/trunk@4351 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h
index 0a582cb..b60e961 100644
--- a/samplecode/SampleCode.h
+++ b/samplecode/SampleCode.h
@@ -47,7 +47,7 @@
// interface that constructs SkViews
class SkViewFactory : public SkRefCnt {
-public:
+public:
virtual SkView* operator() () const = 0;
};
@@ -83,6 +83,8 @@
class SkViewRegister : public SkRefCnt {
public:
+ SK_DECLARE_INST_COUNT(SkViewRegister)
+
explicit SkViewRegister(SkViewFactory*);
explicit SkViewRegister(SkViewCreateFunc);
explicit SkViewRegister(GMFactoryFunc);