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

Unified Diff: Source/platform/exported/WebActiveGestureAnimation.cpp

Issue 321373003: Changing animate to beginFrame and use struct rather than naked double to allow extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing Adam+Shane's feedback. 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/platform/exported/WebActiveGestureAnimation.cpp
diff --git a/Source/platform/exported/WebActiveGestureAnimation.cpp b/Source/platform/exported/WebActiveGestureAnimation.cpp
index f0a5eb6c0661d6573b51a06b468c1297d2d8fdeb..e5fc61345bd23c9caf3db2e1a035e5547c53821b 100644
--- a/Source/platform/exported/WebActiveGestureAnimation.cpp
+++ b/Source/platform/exported/WebActiveGestureAnimation.cpp
@@ -53,8 +53,9 @@ WebActiveGestureAnimation::WebActiveGestureAnimation(PassOwnPtr<WebGestureCurve>
{
}
-bool WebActiveGestureAnimation::animate(double time)
+bool WebActiveGestureAnimation::animate(WebFrameTime frameTime)
{
+ double time = frameTime.displayFrameTime;
if (m_waitingForFirstTick) {
m_startTime = time;
m_waitingForFirstTick = false;

Powered by Google App Engine
This is Rietveld 408576698