From da44133fe92ec11fa6b904c498e7e5cd23a43cbf Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Sun, 30 Jan 2011 15:34:46 -0800 Subject: Add a ClassTracker class to more easily track leaks bug:3376517 Change-Id: Ieb419bc3140963ccbda3e2f130778ec53b2920aa --- WebCore/platform/graphics/android/BaseTile.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'WebCore/platform/graphics/android/BaseTile.cpp') diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index c45b138..2753fb2 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -58,14 +58,6 @@ namespace WebCore { -#ifdef DEBUG_COUNT -static int gBaseTileCount = 0; -int BaseTile::count() -{ - return gBaseTileCount; -} -#endif - BaseTile::BaseTile() : m_page(0) , m_x(-1) @@ -78,7 +70,7 @@ BaseTile::BaseTile() , m_lastPaintedPicture(0) { #ifdef DEBUG_COUNT - gBaseTileCount++; + ClassTracker::instance()->increment("BaseTile"); #endif } @@ -89,7 +81,7 @@ BaseTile::~BaseTile() m_texture->release(this); #ifdef DEBUG_COUNT - gBaseTileCount--; + ClassTracker::instance()->decrement("BaseTile"); #endif } -- cgit v1.1