diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-01-11 11:38:58 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-01-11 11:38:58 -0800 |
commit | 100a4c5bbcdd1cdafdc6add279f6d7ed4dec3796 (patch) | |
tree | 09fcb27031a8d658e4979281a6627049c5384d1f | |
parent | 6208484f422c0d4c3008eb2f78f2fbd8db5982a1 (diff) | |
download | external_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
-rw-r--r-- | WebCore/platform/graphics/android/LayerAndroid.cpp | 7 |
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; } |