summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-05-18 17:02:33 -0700
committerChris Craik <ccraik@google.com>2012-05-18 17:02:33 -0700
commit48605bf1f6bc77a1f037f23285baf7706f45d198 (patch)
tree0118a279c6af10fed342b9816c35f761a117bc46 /Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp
parentd423988553ea721896b4ac1d3720ed04332ebbb3 (diff)
downloadexternal_webkit-48605bf1f6bc77a1f037f23285baf7706f45d198.zip
external_webkit-48605bf1f6bc77a1f037f23285baf7706f45d198.tar.gz
external_webkit-48605bf1f6bc77a1f037f23285baf7706f45d198.tar.bz2
Remove paint tile operations for stale painters
bug:6516612 also adds ClassTracker to several classes Change-Id: I9a503084240d4935fba300a3256d266a2982dcc0
Diffstat (limited to 'Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp
index 3241a61..a0a1b58 100644
--- a/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.cpp
@@ -31,6 +31,7 @@
#include "AndroidLog.h"
#include "CachedImage.h"
+#include "ClassTracker.h"
#include "DrawQuadData.h"
#include "FixedPositioning.h"
#include "GLWebViewState.h"
@@ -117,6 +118,10 @@ FixedBackgroundImageLayerAndroid::FixedBackgroundImageLayerAndroid(PassRefPtr<Re
setFixedPosition(position);
position->setPosition(left, top);
+
+#ifdef DEBUG_COUNT
+ ClassTracker::instance()->increment("FixedBackgroundImageLayerAndroid");
+#endif
}
FixedBackgroundImageLayerAndroid::FixedBackgroundImageLayerAndroid(const FixedBackgroundImageLayerAndroid& layer)
@@ -124,6 +129,16 @@ FixedBackgroundImageLayerAndroid::FixedBackgroundImageLayerAndroid(const FixedBa
, m_width(layer.m_width)
, m_height(layer.m_height)
{
+#ifdef DEBUG_COUNT
+ ClassTracker::instance()->increment("FixedBackgroundImageLayerAndroid");
+#endif
+}
+
+FixedBackgroundImageLayerAndroid::~FixedBackgroundImageLayerAndroid()
+{
+#ifdef DEBUG_COUNT
+ ClassTracker::instance()->decrement("FixedBackgroundImageLayerAndroid");
+#endif
}
static bool needToDisplayImage(bool repeatX, bool repeatY, float dx, float dy)