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

Unified Diff: cc/layers/layer_impl.cc

Issue 361143002: Impl thread smooth scrolling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add/update unit tests. Created 6 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/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 231f4aab03a6bcb0380aaf464b2263f329b8fb34..6fbb0754cbdc8a0aebd48ec2fefdc6cb09d83c85 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -77,6 +77,7 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
layer_animation_controller_->AddValueObserver(this);
if (IsActive())
layer_animation_controller_->set_value_provider(this);
+ layer_animation_controller_->set_layer_animation_delegate(this);
ajuma 2014/07/08 18:45:32 Like the previous line, this needs to happen only
skobes 2014/07/08 21:21:58 Done.
SetNeedsPushProperties();
}
@@ -1492,4 +1493,12 @@ scoped_ptr<base::Value> LayerImpl::AsValue() const {
void LayerImpl::RunMicroBenchmark(MicroBenchmarkImpl* benchmark) {
benchmark->RunOnLayer(this);
}
+
+void LayerImpl::NotifyAnimationFinished(
+ base::TimeTicks monotonic_time,
+ Animation::TargetProperty target_property) {
+ if (target_property == Animation::ScrollOffset)
+ layer_tree_impl_->ScrollOffsetAnimationFinished();
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698