Chromium Code Reviews| 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 |