aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-05 19:35:09 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-05 19:35:09 +0000
commit977b9c8af3ef1b9a2fa2a0037cf3734cf2ba13d9 (patch)
treeecdeb79bec4abd85562a1b15c4cb6429b05737b3 /src
parentb52cf3dd95b3d3e7445ac9b82560317c296daa42 (diff)
Instance counting for SkRefCnt-derived objects (w/ CanvasTest fix)
Diffstat (limited to 'src')
-rw-r--r--src/core/SkRefCnt.cpp12
-rw-r--r--src/gpu/GrResource.cpp2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/core/SkRefCnt.cpp b/src/core/SkRefCnt.cpp
new file mode 100644
index 0000000000..111ecd834c
--- /dev/null
+++ b/src/core/SkRefCnt.cpp
@@ -0,0 +1,12 @@
+/*
+ * 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 "SkRefCnt.h"
+
+DEFINE_INST_COUNT(SkRefCnt)
+
diff --git a/src/gpu/GrResource.cpp b/src/gpu/GrResource.cpp
index 9efc83862e..a5168c8473 100644
--- a/src/gpu/GrResource.cpp
+++ b/src/gpu/GrResource.cpp
@@ -10,6 +10,8 @@
#include "GrResource.h"
#include "GrGpu.h"
+DEFINE_INST_COUNT(GrResource)
+
GrResource::GrResource(GrGpu* gpu) {
fGpu = gpu;
fNext = NULL;