summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-01-11 11:38:58 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2011-01-11 11:38:58 -0800
commit100a4c5bbcdd1cdafdc6add279f6d7ed4dec3796 (patch)
tree09fcb27031a8d658e4979281a6627049c5384d1f /WebCore
parent6208484f422c0d4c3008eb2f78f2fbd8db5982a1 (diff)
downloadexternal_webkit-100a4c5bbcdd1cdafdc6add279f6d7ed4dec3796.zip
external_webkit-100a4c5bbcdd1cdafdc6add279f6d7ed4dec3796.tar.gz
external_webkit-100a4c5bbcdd1cdafdc6add279f6d7ed4dec3796.tar.bz2
Fix the invalidate on the layer
For each layer, if its content is dirty, it should tell the Java to redraw. Change-Id: If1fe006c0777130083ddc84778104fff35435a1b b:3327600
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/android/LayerAndroid.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.cpp b/WebCore/platform/graphics/android/LayerAndroid.cpp
index 94e16da..098ef53 100644
--- a/WebCore/platform/graphics/android/LayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/LayerAndroid.cpp
@@ -629,7 +629,12 @@ bool LayerAndroid::drawGL(SkMatrix& matrix)
m_texture->consumerRelease();
}
- return drawChildrenGL(matrix);
+ // When the layer is dirty, the UI thread should be notified to redraw.
+ bool askPaint = drawChildrenGL(matrix);
+ m_atomicSync.lock();
+ askPaint |= m_dirty;
+ m_atomicSync.unlock();
+ return askPaint;
}