diff options
Diffstat (limited to 'samplecode/SampleCode.h')
-rw-r--r-- | samplecode/SampleCode.h | 4 |
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); |