diff options
-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; |