diff options
author | Nicolas Roard <nicolasroard@google.com> | 2012-02-14 18:45:29 -0800 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2012-02-14 18:45:29 -0800 |
commit | df48010675c62ef2efba8580681fabcfe3a22e43 (patch) | |
tree | 979a38e3448c475d75944793a22a7650b75cc89f /Source/WebCore/platform/graphics/android | |
parent | 048f0f59f7fde542ee8f86e956b92b9d2adbf4cc (diff) | |
download | external_webkit-df48010675c62ef2efba8580681fabcfe3a22e43.zip external_webkit-df48010675c62ef2efba8580681fabcfe3a22e43.tar.gz external_webkit-df48010675c62ef2efba8580681fabcfe3a22e43.tar.bz2 |
Fix for high latency when creating a new layer
bug:6016661
Change-Id: I09b729203b77f8138f8b32182d70e1fc6c5ea9f7
Diffstat (limited to 'Source/WebCore/platform/graphics/android')
-rw-r--r-- | Source/WebCore/platform/graphics/android/TiledTexture.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/TiledTexture.cpp b/Source/WebCore/platform/graphics/android/TiledTexture.cpp index 3696b4a..1e8b946 100644 --- a/Source/WebCore/platform/graphics/android/TiledTexture.cpp +++ b/Source/WebCore/platform/graphics/android/TiledTexture.cpp @@ -366,6 +366,11 @@ void DualTiledTexture::prepare(GLWebViewState* state, float scale, bool repaint, if (!m_zooming) m_preZoomPrepareArea = prepareArea; + if (m_scale == -1) { + m_scale = scale; + m_futureScale = scale; + } + if (m_futureScale != scale) { m_futureScale = scale; m_zoomUpdateTime = WTF::currentTime() + DualTiledTexture::s_zoomUpdateDelay; |