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

Unified Diff: cc/input/input_handler.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: 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/input/input_handler.h
diff --git a/cc/input/input_handler.h b/cc/input/input_handler.h
index 30ac88d425665f7786501a4e6a7f3f6e0281e8f2..e64878be15224432e829a951c0ad75882c263a7c 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -132,6 +132,8 @@ class CC_EXPORT InputHandler {
virtual ScrollStatus ScrollAnimated(const gfx::Point& viewport_point,
const gfx::Vector2dF& scroll_delta) = 0;
+ virtual void AdjustDuration(base::TimeDelta) = 0;
skobes 2016/06/08 22:47:28 I don't think we should ever adjust the duration a
+
// Scroll the layer selected by |ScrollBegin| by given |scroll_state| delta.
// Internally, the delta is transformed to local layer's coordinate space for
// scrolls gestures that are direct manipulation (e.g. touch). If there is no

Powered by Google App Engine
This is Rietveld 408576698