summaryrefslogtreecommitdiff
path: root/gpu/GrRenderTarget.cpp
diff options
context:
space:
mode:
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-05 12:08:12 +0000
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-05 12:08:12 +0000
commit3fc092543559b6819a64c8f66c5bf6e23e2d4069 (patch)
tree4b452bb9a7de50adbe4f620da4765abd460f0e74 /gpu/GrRenderTarget.cpp
parentd1071735e3ef89fd81ffefb3eb05fc4bd7b06aa3 (diff)
downloadsrc-3fc092543559b6819a64c8f66c5bf6e23e2d4069.tar.gz
Fix compilation with SK_ENABLE_INST_COUNT=1
Add INHERITED declarations to class declarations that prevent compilation with the flag. Remove SK_DEFINE_INST_COUNT from all class implementations. Instead, use function-local static variables in the reference count helper classes to create the global instances to store the needed info. The accessor functions are defined inline in the helper classes, so definitions are not needed. The initialization point of the variables should be as well defined as previously. Remove SK_DECLARE_INST_COUNT_TEMPLATE and use SK_DECLARE_INST_COUNT instead. This avoids possible future compilation errors further. For SK_ENABLE_INST_COUNT=0 compilation, add an empty static member function to all classes that use SK_DECLARE_INST_COUNT and SK_DECLARE_INST_COUNT_ROOT macros. The function ensures that classes contain public INHERITED typedef. This member function seems to be compiled away. This shouĺd ensure that part of the compilation errors are caught earlier. Also adds DSK_DECLARE_INST_COUNT to few SkPDFDict subclasses. R=robertphillips@google.com, richardlin@chromium.org, bsalomon@google.com Author: kkinnunen@nvidia.com Review URL: https://codereview.chromium.org/98703002 git-svn-id: http://skia.googlecode.com/svn/trunk/src@12501 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/GrRenderTarget.cpp')
-rw-r--r--gpu/GrRenderTarget.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/gpu/GrRenderTarget.cpp b/gpu/GrRenderTarget.cpp
index 49a76149..f18df2cf 100644
--- a/gpu/GrRenderTarget.cpp
+++ b/gpu/GrRenderTarget.cpp
@@ -13,8 +13,6 @@
#include "GrGpu.h"
#include "GrStencilBuffer.h"
-SK_DEFINE_INST_COUNT(GrRenderTarget)
-
bool GrRenderTarget::readPixels(int left, int top, int width, int height,
GrPixelConfig config,
void* buffer,