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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 1009233002: CC Animations: Port Impl-only-scrolling to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui
Patch Set: Fix code review issues. Created 5 years, 5 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.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 62d730b5895a0439de0b76d960565042da09fed0..918d5db58fc8c1d738e4e025f2985a9b896f10b9 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1149,6 +1149,13 @@ void LayerTreeHost::SetLayerScrollOffsetMutated(
layer->OnScrollOffsetAnimated(scroll_offset);
}
+gfx::ScrollOffset LayerTreeHost::GetScrollOffsetForAnimation(
+ int layer_id) const {
+ LayerAnimationValueProvider* layer = LayerById(layer_id);
+ DCHECK(layer);
+ return layer->ScrollOffsetForAnimation();
+}
+
bool LayerTreeHost::ScrollOffsetAnimationWasInterrupted(
const Layer* layer) const {
return animation_host_

Powered by Google App Engine
This is Rietveld 408576698