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

Unified Diff: cc/trees/layer_tree_host_impl.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/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 056c167423acd16e5fa24232b7f112ea984883be..6fae3289a10c565f71f830cf342e42c5af8843fa 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -173,7 +173,8 @@ class CC_EXPORT LayerTreeHostImpl
ScrollStatus ScrollAnimatedBegin(const gfx::Point& viewport_point) override;
InputHandler::ScrollStatus ScrollAnimated(
const gfx::Point& viewport_point,
- const gfx::Vector2dF& scroll_delta) override;
+ const gfx::Vector2dF& scroll_delta,
+ const ui::LatencyInfo* LatencyInfo) override;
void ApplyScroll(ScrollNode* scroll_node, ScrollState* scroll_state);
InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) override;
bool ScrollVerticallyByPage(const gfx::Point& viewport_point,
@@ -614,7 +615,8 @@ class CC_EXPORT LayerTreeHostImpl
// Returns true if a scroll offset animation is created and false if we scroll
// by the desired amount without an animation.
bool ScrollAnimationCreate(ScrollNode* scroll_node,
- const gfx::Vector2dF& scroll_amount);
+ const gfx::Vector2dF& scroll_amount,
+ base::TimeTicks original_event_time);
void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator);
LayerTreeMutator* mutator() { return mutator_.get(); }

Powered by Google App Engine
This is Rietveld 408576698