summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp b/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp
index 78a9861..fcd9655 100644
--- a/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp
@@ -31,6 +31,7 @@
#include "AndroidLog.h"
#include "Color.h"
+#include "ClassTracker.h"
#include "GLWebViewState.h"
#include "LayerAndroid.h"
@@ -46,6 +47,9 @@ SurfaceBacking::SurfaceBacking(bool isBaseSurface)
m_scale = -1;
m_futureScale = -1;
m_zooming = false;
+#ifdef DEBUG_COUNT
+ ClassTracker::instance()->increment("SurfaceBacking");
+#endif
}
SurfaceBacking::~SurfaceBacking()
@@ -53,6 +57,9 @@ SurfaceBacking::~SurfaceBacking()
delete m_frontTileGrid;
delete m_backTileGrid;
delete m_lowResTileGrid;
+#ifdef DEBUG_COUNT
+ ClassTracker::instance()->decrement("SurfaceBacking");
+#endif
}
void SurfaceBacking::prepareGL(GLWebViewState* state, bool allowZoom,