summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/TileSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/TileSet.cpp')
-rw-r--r--WebCore/platform/graphics/android/TileSet.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/WebCore/platform/graphics/android/TileSet.cpp b/WebCore/platform/graphics/android/TileSet.cpp
index 4530640..1214aa2 100644
--- a/WebCore/platform/graphics/android/TileSet.cpp
+++ b/WebCore/platform/graphics/android/TileSet.cpp
@@ -28,6 +28,7 @@
#if USE(ACCELERATED_COMPOSITING)
+#include "ClassTracker.h"
#include "TilesManager.h"
#ifdef DEBUG
@@ -48,28 +49,20 @@
namespace WebCore {
-#ifdef DEBUG_COUNT
-static int gTileSetCount = 0;
-int TileSet::count()
-{
- return gTileSetCount;
-}
-#endif
-
TileSet::TileSet(TiledPage* tiledPage, int rows, int cols)
: m_tiledPage(tiledPage)
, m_nbRows(rows)
, m_nbCols(cols)
{
#ifdef DEBUG_COUNT
- gTileSetCount++;
+ ClassTracker::instance()->increment("TileSet");
#endif
}
TileSet::~TileSet()
{
#ifdef DEBUG_COUNT
- gTileSetCount--;
+ ClassTracker::instance()->decrement("TileSet");
#endif
}