diff options
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 2 | ||||
-rw-r--r-- | samplecode/SampleApp.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index e237ac598f..254d209db1 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -38,6 +38,8 @@ class GrContext; #include "SkGPipe.h" #include "SamplePipeControllers.h" +SK_DEFINE_INST_COUNT(SampleWindow::DeviceManager) + extern SampleView* CreateSamplePictFileView(const char filename[]); class PictFileFactory : public SkViewFactory { diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h index 00353b208a..cb4446f18e 100644 --- a/samplecode/SampleApp.h +++ b/samplecode/SampleApp.h @@ -54,6 +54,8 @@ public: */ class DeviceManager : public SkRefCnt { public: + SK_DECLARE_INST_COUNT(DeviceManager) + virtual void setUpBackend(SampleWindow* win, int msaaSampleCount) = 0; virtual void tearDownBackend(SampleWindow* win) = 0; @@ -79,6 +81,8 @@ public: // return the GrRenderTarget backing gpu devices (NULL if not built with GPU support) virtual GrRenderTarget* getGrRenderTarget() = 0; + private: + typedef SkRefCnt INHERITED; }; SampleWindow(void* hwnd, int argc, char** argv, DeviceManager*); |