summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/LayerAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/LayerAndroid.cpp')
-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;
}