aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gyp/gpu.gypi2
-rw-r--r--src/gpu/GrGeometryBuffer.cpp10
-rw-r--r--src/gpu/GrGeometryBuffer.h1
-rw-r--r--src/gpu/GrPath.cpp10
-rw-r--r--src/gpu/GrPath.h2
-rw-r--r--src/gpu/GrStencilBuffer.cpp1
-rw-r--r--src/gpu/GrStencilBuffer.h1
7 files changed, 27 insertions, 0 deletions
diff --git a/gyp/gpu.gypi b/gyp/gpu.gypi
index 806acafe87..cdaa7e725f 100644
--- a/gyp/gpu.gypi
+++ b/gyp/gpu.gypi
@@ -65,6 +65,7 @@
'<(skia_src_path)/gpu/GrDrawState.h',
'<(skia_src_path)/gpu/GrDrawTarget.cpp',
'<(skia_src_path)/gpu/GrDrawTarget.h',
+ '<(skia_src_path)/gpu/GrGeometryBuffer.cpp',
'<(skia_src_path)/gpu/GrGeometryBuffer.h',
'<(skia_src_path)/gpu/GrClipMaskCache.h',
'<(skia_src_path)/gpu/GrClipMaskCache.cpp',
@@ -81,6 +82,7 @@
'<(skia_src_path)/gpu/GrMemory.cpp',
'<(skia_src_path)/gpu/GrMemoryPool.cpp',
'<(skia_src_path)/gpu/GrMemoryPool.h',
+ '<(skia_src_path)/gpu/GrPath.cpp',
'<(skia_src_path)/gpu/GrPath.h',
'<(skia_src_path)/gpu/GrPathRendererChain.cpp',
'<(skia_src_path)/gpu/GrPathRendererChain.h',
diff --git a/src/gpu/GrGeometryBuffer.cpp b/src/gpu/GrGeometryBuffer.cpp
new file mode 100644
index 0000000000..202d0c33ee
--- /dev/null
+++ b/src/gpu/GrGeometryBuffer.cpp
@@ -0,0 +1,10 @@
+/*
+ * Copyright 2012 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "GrGeometryBuffer.h"
+
+SK_DEFINE_INST_COUNT(GrGeometryBuffer)
diff --git a/src/gpu/GrGeometryBuffer.h b/src/gpu/GrGeometryBuffer.h
index c74b25487d..c156fa3c77 100644
--- a/src/gpu/GrGeometryBuffer.h
+++ b/src/gpu/GrGeometryBuffer.h
@@ -19,6 +19,7 @@ class GrGpu;
*/
class GrGeometryBuffer : public GrResource {
public:
+ SK_DECLARE_INST_COUNT(GrGeometryBuffer);
/**
*Retrieves whether the buffer was created with the dynamic flag
diff --git a/src/gpu/GrPath.cpp b/src/gpu/GrPath.cpp
new file mode 100644
index 0000000000..afd223902f
--- /dev/null
+++ b/src/gpu/GrPath.cpp
@@ -0,0 +1,10 @@
+/*
+ * Copyright 2012 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "GrPath.h"
+
+SK_DEFINE_INST_COUNT(GrPath)
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h
index 1404546b73..e8f0d5851f 100644
--- a/src/gpu/GrPath.h
+++ b/src/gpu/GrPath.h
@@ -14,6 +14,8 @@
class GrPath : public GrResource {
public:
+ SK_DECLARE_INST_COUNT(GrPath);
+
GrPath(GrGpu* gpu) : INHERITED(gpu) {}
const GrRect& getBounds() const { return fBounds; }
diff --git a/src/gpu/GrStencilBuffer.cpp b/src/gpu/GrStencilBuffer.cpp
index da597626d3..180912e02d 100644
--- a/src/gpu/GrStencilBuffer.cpp
+++ b/src/gpu/GrStencilBuffer.cpp
@@ -12,6 +12,7 @@
#include "GrGpu.h"
#include "GrResourceCache.h"
+SK_DEFINE_INST_COUNT(GrStencilBuffer)
GR_DEFINE_RESOURCE_CACHE_TYPE(GrStencilBuffer)
void GrStencilBuffer::transferToCache() {
diff --git a/src/gpu/GrStencilBuffer.h b/src/gpu/GrStencilBuffer.h
index 2a0dbc022a..7439c761bc 100644
--- a/src/gpu/GrStencilBuffer.h
+++ b/src/gpu/GrStencilBuffer.h
@@ -20,6 +20,7 @@ class GrResourceKey;
class GrStencilBuffer : public GrResource {
public:
+ SK_DECLARE_INST_COUNT(GrStencilBuffer);
GR_DECLARE_RESOURCE_CACHE_TYPE()
virtual ~GrStencilBuffer() {