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

Unified Diff: cc/layers/viewport.h

Issue 2040543002: Take MT jank into account when animating the scroll offset on CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix constant Created 4 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: cc/layers/viewport.h
diff --git a/cc/layers/viewport.h b/cc/layers/viewport.h
index 2d603f253f263241a9c06a90b334316e5036ba51..c2e01ec5eb74361946b924b8ccc4bc18263852fd 100644
--- a/cc/layers/viewport.h
+++ b/cc/layers/viewport.h
@@ -50,7 +50,8 @@ class CC_EXPORT Viewport {
// Scrolls the viewport, bubbling the delta between the inner and outer
// viewport. Only animates either of the two viewports.
- gfx::Vector2dF ScrollAnimated(const gfx::Vector2dF& delta);
+ gfx::Vector2dF ScrollAnimated(const gfx::Vector2dF& delta,
+ base::TimeTicks original_event_time);
void PinchUpdate(float magnify_delta, const gfx::Point& anchor);
void PinchEnd();

Powered by Google App Engine
This is Rietveld 408576698