diff options
author | 2012-06-21 20:25:03 +0000 | |
---|---|---|
committer | 2012-06-21 20:25:03 +0000 | |
commit | 15e9d3e66e161ce23df30bc13f8a0c87d196b463 (patch) | |
tree | 2cc4661f85d92a98de30e7bca582163321fc018d /include/gpu/gl | |
parent | c82a8b7aa4ec19fba508c394920a9e88d3e5bd12 (diff) |
Expanded distribution of instance counting
http://codereview.appspot.com/6300114/
git-svn-id: http://skia.googlecode.com/svn/trunk@4291 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/gl')
-rw-r--r-- | include/gpu/gl/GrGLInterface.h | 4 | ||||
-rw-r--r-- | include/gpu/gl/SkGLContext.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h index 1827dc2c1b..c627b90fd6 100644 --- a/include/gpu/gl/GrGLInterface.h +++ b/include/gpu/gl/GrGLInterface.h @@ -119,7 +119,11 @@ private: FNPTR_TYPE fPtr; }; + typedef GrRefCnt INHERITED; + public: + SK_DECLARE_INST_COUNT(GrGLInterface) + GrGLInterface(); // Validates that the GrGLInterface supports a binding. This means that diff --git a/include/gpu/gl/SkGLContext.h b/include/gpu/gl/SkGLContext.h index e2ac7e0885..b8b6b6e85d 100644 --- a/include/gpu/gl/SkGLContext.h +++ b/include/gpu/gl/SkGLContext.h @@ -18,6 +18,8 @@ class SkGLContext : public SkRefCnt { public: + SK_DECLARE_INST_COUNT(SkGLContext) + SkGLContext(); virtual ~SkGLContext(); @@ -54,6 +56,8 @@ private: GrGLuint fColorBufferID; GrGLuint fDepthStencilBufferID; const GrGLInterface* fGL; + + typedef SkRefCnt INHERITED; }; /** |