From 814df5e8512a2e8b0d5bdab8546ed057a847f87d Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 26 Jun 2012 19:54:52 +0000 Subject: don't add SkViewRegistry to SkInstCnt git-svn-id: http://skia.googlecode.com/svn/trunk@4351 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/SampleCode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'samplecode/SampleCode.h') 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); -- cgit v1.2.3