diff options
author | Chris Craik <ccraik@google.com> | 2012-03-08 16:09:15 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-03-09 14:05:51 -0800 |
commit | f7ad77dc2a981834d664fd24022c3dfade69c8aa (patch) | |
tree | dbbf9e1483b1f371c22505b4faa62801bf47697f /Source/WebCore/platform/graphics/android/GLWebViewState.cpp | |
parent | 1a3ed28020480a9db46e41b02a48db209e3d9560 (diff) | |
download | external_webkit-f7ad77dc2a981834d664fd24022c3dfade69c8aa.zip external_webkit-f7ad77dc2a981834d664fd24022c3dfade69c8aa.tar.gz external_webkit-f7ad77dc2a981834d664fd24022c3dfade69c8aa.tar.bz2 |
Replace picture count with the SurfaceCollection count
Displays surface collection count on tiles when visual indicator is on.
Change-Id: Ibe90792279849baff6f5bf0d71b80d9081471dc4
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index cfd8937..97bd7a8 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -81,7 +81,6 @@ using namespace android; GLWebViewState::GLWebViewState() : m_zoomManager(this) - , m_currentPictureCounter(0) , m_usePageA(true) , m_frameworkInval(0, 0, 0, 0) , m_frameworkLayersInval(0, 0, 0, 0) @@ -186,11 +185,10 @@ void GLWebViewState::invalRegion(const SkRegion& region) void GLWebViewState::inval(const IntRect& rect) { - m_currentPictureCounter++; if (!rect.isEmpty()) { // find which tiles fall within the invalRect and mark them as dirty - m_tiledPageA->invalidateRect(rect, m_currentPictureCounter); - m_tiledPageB->invalidateRect(rect, m_currentPictureCounter); + m_tiledPageA->invalidateRect(rect); + m_tiledPageB->invalidateRect(rect); if (m_frameworkInval.isEmpty()) m_frameworkInval = rect; else @@ -202,10 +200,9 @@ void GLWebViewState::inval(const IntRect& rect) TilesManager::instance()->getProfiler()->nextInval(rect, zoomManager()->currentScale()); } -unsigned int GLWebViewState::paintBaseLayerContent(SkCanvas* canvas) +void GLWebViewState::paintBaseLayerContent(SkCanvas* canvas) { m_surfaceCollectionManager.drawCanvas(canvas, m_layersRenderingMode == kSingleSurfaceRendering); - return m_currentPictureCounter; } TiledPage* GLWebViewState::sibling(TiledPage* page) |