summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/BaseTile.cpp
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2011-01-23 15:01:19 -0800
committerNicolas Roard <nicolas@android.com>2011-01-23 15:22:37 -0800
commit245e0cdd9ea80915059080a2bedbb9ebb5cc646c (patch)
tree54c5301592a888869aa712582d00da3bfb476336 /WebCore/platform/graphics/android/BaseTile.cpp
parentf0425628b4e83bf9e1c8275d809d433baeaf768c (diff)
downloadexternal_webkit-245e0cdd9ea80915059080a2bedbb9ebb5cc646c.zip
external_webkit-245e0cdd9ea80915059080a2bedbb9ebb5cc646c.tar.gz
external_webkit-245e0cdd9ea80915059080a2bedbb9ebb5cc646c.tar.bz2
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
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.cpp')
-rw-r--r--WebCore/platform/graphics/android/BaseTile.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}