diff options
author | Nicolas Roard <nicolas@android.com> | 2011-01-30 15:34:46 -0800 |
---|---|---|
committer | Nicolas Roard <nicolas@android.com> | 2011-01-30 17:11:52 -0800 |
commit | da44133fe92ec11fa6b904c498e7e5cd23a43cbf (patch) | |
tree | 9fb27831c884476be59161bd16fd0427412a1865 /WebCore/platform/graphics/android/BaseTile.cpp | |
parent | 49e6e531daf99d2349caab00380648b689e7c1dc (diff) | |
download | external_webkit-da44133fe92ec11fa6b904c498e7e5cd23a43cbf.zip external_webkit-da44133fe92ec11fa6b904c498e7e5cd23a43cbf.tar.gz external_webkit-da44133fe92ec11fa6b904c498e7e5cd23a43cbf.tar.bz2 |
Add a ClassTracker class to more easily track leaks
bug:3376517
Change-Id: Ieb419bc3140963ccbda3e2f130778ec53b2920aa
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
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 } |