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

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: add test + apply suggested improvement Created 4 years, 3 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
« no previous file with comments | « cc/animation/scroll_offset_animations_impl.cc ('k') | cc/layers/viewport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/input_handler.h
diff --git a/cc/input/input_handler.h b/cc/input/input_handler.h
index bd11a620bbff2038ab1a8e74a38abf5f56c39eee..8d0f0c49982fc87b4f3b8c784c3a3f98320eda78 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -128,8 +128,12 @@ class CC_EXPORT InputHandler {
virtual ScrollStatus ScrollAnimatedBegin(
const gfx::Point& viewport_point) = 0;
+ // Returns SCROLL_ON_IMPL_THREAD if an animation is initiated on the impl
+ // thread. delayed_by is the delay that is taken into account when determining
+ // the duration of the animation.
virtual ScrollStatus ScrollAnimated(const gfx::Point& viewport_point,
- const gfx::Vector2dF& scroll_delta) = 0;
+ const gfx::Vector2dF& scroll_delta,
+ base::TimeDelta delayed_by) = 0;
// Scroll the layer selected by |ScrollBegin| by given |scroll_state| delta.
// Internally, the delta is transformed to local layer's coordinate space for
« no previous file with comments | « cc/animation/scroll_offset_animations_impl.cc ('k') | cc/layers/viewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698