aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-16 14:58:06 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-16 14:58:06 +0000
commita22e2117e44efa4298dd0eb6df304a8166c8e9c3 (patch)
tree727738c19786a7c5caf1e09ccfe431b652d8b302 /src/image
parent1f47f4f7325971dd53991e2bb02da94fa7c6d962 (diff)
Extended Inst counting to find "unknown" leaked object (SkTMaskGamma)
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkImage.cpp2
-rw-r--r--src/image/SkSurface.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index a8693e57d8..b6fc4899da 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -10,6 +10,8 @@
#include "SkBitmap.h"
#include "SkCanvas.h"
+SK_DEFINE_INST_COUNT(SkImage)
+
static SkImage_Base* asIB(SkImage* image) {
return static_cast<SkImage_Base*>(image);
}
diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp
index e7695c9df8..299a8d22e0 100644
--- a/src/image/SkSurface.cpp
+++ b/src/image/SkSurface.cpp
@@ -9,6 +9,8 @@
#include "SkImagePriv.h"
#include "SkCanvas.h"
+SK_DEFINE_INST_COUNT(SkSurface)
+
///////////////////////////////////////////////////////////////////////////////
SkSurface_Base::SkSurface_Base(int width, int height) : INHERITED(width, height) {