aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleCode.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-26 19:54:52 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-26 19:54:52 +0000
commit814df5e8512a2e8b0d5bdab8546ed057a847f87d (patch)
treead85b1c301588914fef120c883fb32df24ce2d2b /samplecode/SampleCode.h
parent79655480e7be5185a490b096e96f3a93e35cfe86 (diff)
don't add SkViewRegistry to SkInstCnt
git-svn-id: http://skia.googlecode.com/svn/trunk@4351 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleCode.h')
-rw-r--r--samplecode/SampleCode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h
index 0a582cbb94..b60e961ded 100644
--- a/samplecode/SampleCode.h
+++ b/samplecode/SampleCode.h
@@ -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);