From 245e0cdd9ea80915059080a2bedbb9ebb5cc646c Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Sun, 23 Jan 2011 15:01:19 -0800 Subject: Implement tiles synchronization When a tiledPage is painted, we want to avoid updating the base layer. GLWebViewState and WebView.cpp are now refcounting the base layer, delaying updating the base layer we use to paint until we are done with a full tile paint. bug:3224744 Change-Id: Ica2b8f1db146a1e059fc0735dc53107fc40da07a --- WebCore/platform/graphics/android/BaseTile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'WebCore/platform/graphics/android/BaseTile.cpp') diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index 35de698..c45b138 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -117,7 +117,7 @@ void BaseTile::reserveTexture() void BaseTile::removeTexture(BackedDoubleBufferedTexture* texture) { - XLOG("%x removeTexture res: %x...", this, m_texture); + XLOG("%x removeTexture res: %x... page %x", this, m_texture, m_page); // We update atomically, so paintBitmap() can see the correct value android::AutoMutex lock(m_atomicSync); if (m_texture == texture) @@ -164,7 +164,7 @@ void BaseTile::draw(float transparency, SkRect& rect) // No need to mutex protect reads of m_texture as it is only written to by // the consumer thread. if (!m_texture) { - XLOG("%x (%d, %d) trying to draw, but no m_texture!", this, x(), y()); + XLOG("%x on page %x (%d, %d) trying to draw, but no m_texture!", this, m_page, x(), y()); return; } -- cgit v1.1