diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-01-06 15:01:46 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-01-06 15:01:46 -0800 |
commit | 04feb9aa968fefed404a3051de5cacaebaf0bcbb (patch) | |
tree | 4225ebfa67202e84709b1e6b5014cd0566e1e501 | |
parent | 3fbe109c183e8a6e5a5f48c052923e382234d9d1 (diff) | |
download | external_webkit-04feb9aa968fefed404a3051de5cacaebaf0bcbb.zip external_webkit-04feb9aa968fefed404a3051de5cacaebaf0bcbb.tar.gz external_webkit-04feb9aa968fefed404a3051de5cacaebaf0bcbb.tar.bz2 |
When loading progress is running, ask for redraw
This can smooth the animation of the loading progress.
Otherwise, loading progress can look choppy.
Change-Id: I05c2b70f7172e9a05edce7610675719b830949dd
-rw-r--r-- | Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp index 3ec28e2..58f47d0 100644 --- a/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp @@ -214,6 +214,7 @@ bool VideoLayerAndroid::drawGL() if (m_playerState == PREPARING) { // Show the progressing animation, with two rotating circles showPreparingAnimation(rect, innerRect); + needRedraw = true; } else if (m_playerState == PLAYING && m_surfaceTexture.get()) { // Show the real video. m_surfaceTexture->updateTexImage(); |