summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/BaseLayerAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/BaseLayerAndroid.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
index 52ef8ca..b6177aa 100644
--- a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
@@ -195,13 +195,15 @@ bool BaseLayerAndroid::drawBasePictureInGL(SkRect& viewport, float scale)
// the two pages (current one and future one with the new scale factor)
if (m_glWebViewState->scaleRequestState() == GLWebViewState::kReceivedNewScale) {
TiledPage* nextTiledPage = m_glWebViewState->backPage();
- double transitionTime = m_glWebViewState->transitionTime(currentTime);
+ double transitionTime = (scale < m_glWebViewState->currentScale()) ?
+ m_glWebViewState->zoomOutTransitionTime(currentTime) :
+ m_glWebViewState->zoomInTransitionTime(currentTime);
float newTilesTransparency = 1;
if (scale < m_glWebViewState->currentScale())
- newTilesTransparency = 1 - m_glWebViewState->transparency(currentTime);
+ newTilesTransparency = 1 - m_glWebViewState->zoomOutTransparency(currentTime);
else
- transparency = m_glWebViewState->transparency(currentTime);
+ transparency = m_glWebViewState->zoomInTransparency(currentTime);
nextTiledPage->draw(newTilesTransparency, viewportTileBounds);