commit | 15e9d3e66e161ce23df30bc13f8a0c87d196b463 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jun 21 20:25:03 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jun 21 20:25:03 2012 +0000 |
tree | 2cc4661f85d92a98de30e7bca582163321fc018d | |
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
diff --git a/src/gpu/GrCustomStage.cpp b/src/gpu/GrCustomStage.cpp index c7d0844..c0ec330 100644 --- a/src/gpu/GrCustomStage.cpp +++ b/src/gpu/GrCustomStage.cpp
@@ -8,6 +8,8 @@ #include "GrContext.h" #include "GrCustomStage.h" +SK_DEFINE_INST_COUNT(GrCustomStage) + int32_t GrProgramStageFactory::fCurrStageClassID = GrProgramStageFactory::kIllegalStageClassID;
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index abd4366..02e9337 100644 --- a/src/gpu/gl/GrGLInterface.cpp +++ b/src/gpu/gl/GrGLInterface.cpp
@@ -11,6 +11,8 @@ #include <stdio.h> +SK_DEFINE_INST_COUNT(GrGLInterface) + #if GR_GL_PER_GL_FUNC_CALLBACK namespace { void GrGLDefaultInterfaceCallback(const GrGLInterface*) {}
diff --git a/src/gpu/gl/SkGLContext.cpp b/src/gpu/gl/SkGLContext.cpp index 3252b56..f67e68c 100644 --- a/src/gpu/gl/SkGLContext.cpp +++ b/src/gpu/gl/SkGLContext.cpp
@@ -8,6 +8,8 @@ #include "gl/SkGLContext.h" #include "gl/GrGLUtil.h" +SK_DEFINE_INST_COUNT(SkGLContext) + SkGLContext::SkGLContext() : fFBO(0) , fColorBufferID(0)