summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2012-05-15 14:11:20 -0700
committerNicolas Roard <nicolasroard@google.com>2012-05-16 18:46:20 -0700
commited2ce36a1fac9f85b65edf34a1c241c2f73d806c (patch)
treecd96c66cb53e1cce08e4021f086ca1dfb102d4c8 /Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp
parent7b17ee7dc951f404d93a458a61884d5c1bf6e40f (diff)
downloadexternal_webkit-ed2ce36a1fac9f85b65edf34a1c241c2f73d806c.zip
external_webkit-ed2ce36a1fac9f85b65edf34a1c241c2f73d806c.tar.gz
external_webkit-ed2ce36a1fac9f85b65edf34a1c241c2f73d806c.tar.bz2
Allow more layers to be merged (merging fixed)
This will reduce the need to go to single surface rendering mode, as well as improving jank by reducing the number of surfaces we need. (tested on a set of popular sites, we now need up to 16 times less surfaces, commonly 4-5 times less) bug:5683630 bug:6499283 bug:6366440 Change-Id: I761c6a60279e5b21dca8bc1faccd956be58e3702
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp
index 7c42bd9..e2ac011 100644
--- a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollectionManager.cpp
@@ -255,6 +255,12 @@ int SurfaceCollectionManager::drawGL(double currentTime, IntRect& viewRect,
GLUtils::clearBackgroundIfOpaque(&background);
}
+#ifdef DEBUG
+ ALOGV("Drawing %d / %d surfaces",
+ m_drawingCollection ? m_drawingCollection->backedSize() : -1,
+ m_drawingCollection ? m_drawingCollection->size() : -1);
+#endif
+
if (m_drawingCollection && m_drawingCollection->drawGL(visibleContentRect))
returnFlags |= uirenderer::DrawGlInfo::kStatusDraw;