diff options
author | Nicolas Roard <nicolas@android.com> | 2010-11-29 10:57:05 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-11-29 10:57:05 -0800 |
commit | 6bd88008bc13895cca3e78ccb0460a61d3be331f (patch) | |
tree | 4f82e0b1f62a04c22be70f7c3f471c907567c0c4 /WebCore/platform/graphics/android/GLWebViewState.cpp | |
parent | a05ec2066d986ff15366f15b13cc1bef430d4ea1 (diff) | |
parent | 7a661f000fc142aec9e4f88b04d0a0ee20a0151e (diff) | |
download | external_webkit-6bd88008bc13895cca3e78ccb0460a61d3be331f.zip external_webkit-6bd88008bc13895cca3e78ccb0460a61d3be331f.tar.gz external_webkit-6bd88008bc13895cca3e78ccb0460a61d3be331f.tar.bz2 |
Merge "Refactoring the zoom"
Diffstat (limited to 'WebCore/platform/graphics/android/GLWebViewState.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/GLWebViewState.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/GLWebViewState.cpp b/WebCore/platform/graphics/android/GLWebViewState.cpp index 145bd89..fbf33c2 100644 --- a/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -74,6 +74,7 @@ GLWebViewState::GLWebViewState() , m_usePageA(true) { m_viewport.setEmpty(); + m_futureViewportTileBounds.setEmpty(); m_viewportTileBounds.setEmpty(); m_preZoomBounds.setEmpty(); @@ -133,13 +134,15 @@ unsigned int GLWebViewState::paintBaseLayerContent(SkCanvas* canvas) return m_currentPictureCounter; } -void GLWebViewState::scheduleUpdate(const double& currentTime, float scale) +void GLWebViewState::scheduleUpdate(const double& currentTime, + const SkIRect& viewport, float scale) { // if no update time, set it if (updateTime() == -1) { m_scaleRequestState = kWillScheduleRequest; setUpdateTime(currentTime + s_updateInitialDelay); setFutureScale(scale); + setFutureViewport(viewport); return; } @@ -158,6 +161,7 @@ void GLWebViewState::scheduleUpdate(const double& currentTime, float scale) // in the process of zooming. Let's push the update time a bit. setUpdateTime(currentTime + s_updateDelay); setFutureScale(scale); + setFutureViewport(viewport); } } |