Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1182)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 369793003: Make the web-animations engine use the passed in blink::WebFrameTime values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch to run on try bots. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 486ac6de8f3485635f2a5b96e9d226f4feaf3dc8..f0127346237b1b59b8dae0ec91cf2816ae7cd271 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -109,6 +109,7 @@
#include "public/platform/Platform.h"
#include "public/platform/WebDragData.h"
#include "public/platform/WebFloatPoint.h"
+#include "public/platform/WebFrameTime.h"
#include "public/platform/WebGestureCurve.h"
#include "public/platform/WebImage.h"
#include "public/platform/WebLayerTreeView.h"
@@ -1686,16 +1687,13 @@ void WebViewImpl::didExitFullScreen()
m_fullscreenController->didExitFullScreen();
}
-void WebViewImpl::animate(double monotonicFrameBeginTime)
+void WebViewImpl::animate(WebFrameTime frameTime)
{
TRACE_EVENT0("blink", "WebViewImpl::animate");
- if (!monotonicFrameBeginTime)
- monotonicFrameBeginTime = monotonicallyIncreasingTime();
-
// Create synthetic wheel events as necessary for fling.
if (m_gestureAnimation) {
- if (m_gestureAnimation->animate(monotonicFrameBeginTime))
+ if (m_gestureAnimation->animate(frameTime))
scheduleAnimation();
else {
endActiveFlingAnimation();
@@ -1712,7 +1710,7 @@ void WebViewImpl::animate(double monotonicFrameBeginTime)
if (!m_page)
return;
- PageWidgetDelegate::animate(m_page.get(), monotonicFrameBeginTime);
+ PageWidgetDelegate::animate(m_page.get(), frameTime);
if (m_continuousPaintingEnabled) {
ContinuousPainter::setNeedsDisplayRecursive(m_rootGraphicsLayer, m_pageOverlays.get());

Powered by Google App Engine
This is Rietveld 408576698