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

Unified Diff: third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h

Issue 2917823003: Revert of Remove a frame of delay on main-thread FlingStart. (Closed)
Patch Set: Created 3 years, 7 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: third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
diff --git a/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h b/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
index e1adc588e050e6e4c1643bcde6232222940d2c79..45b29d4fab8393f6e05af5d97f3e555b62134922 100644
--- a/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
+++ b/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
@@ -46,6 +46,9 @@
WTF_MAKE_NONCOPYABLE(WebActiveGestureAnimation);
public:
+ static std::unique_ptr<WebActiveGestureAnimation> CreateAtAnimationStart(
+ std::unique_ptr<WebGestureCurve>,
+ WebGestureCurveTarget*);
static std::unique_ptr<WebActiveGestureAnimation> CreateWithTimeOffset(
std::unique_ptr<WebGestureCurve>,
WebGestureCurveTarget*,
@@ -58,9 +61,11 @@
// Assumes a valid WebGestureCurveTarget that outlives the animation.
WebActiveGestureAnimation(std::unique_ptr<WebGestureCurve>,
WebGestureCurveTarget*,
- double start_time);
+ double start_time,
+ bool waiting_for_first_tick);
double start_time_;
+ bool waiting_for_first_tick_;
std::unique_ptr<WebGestureCurve> curve_;
WebGestureCurveTarget* target_;
};

Powered by Google App Engine
This is Rietveld 408576698