| Index: ui/compositor/layer_animator.cc
|
| diff --git a/ui/compositor/layer_animator.cc b/ui/compositor/layer_animator.cc
|
| index 141e7dd18bad6b16bfc4f7ad73f66fa8c27c6fa5..df00ff9646cba741829a14c759535b111287eb85 100644
|
| --- a/ui/compositor/layer_animator.cc
|
| +++ b/ui/compositor/layer_animator.cc
|
| @@ -53,7 +53,8 @@ LayerAnimator::LayerAnimator(base::TimeDelta transition_duration)
|
| tween_type_(gfx::Tween::LINEAR),
|
| is_started_(false),
|
| disable_timer_for_test_(false),
|
| - adding_animations_(false) {
|
| + adding_animations_(false),
|
| + animation_metrics_reporter_(nullptr) {
|
| animation_player_ =
|
| cc::AnimationPlayer::Create(cc::AnimationIdProvider::NextPlayerId());
|
| }
|
| @@ -195,6 +196,8 @@ cc::AnimationPlayer* LayerAnimator::GetAnimationPlayerForTesting() const {
|
|
|
| void LayerAnimator::StartAnimation(LayerAnimationSequence* animation) {
|
| scoped_refptr<LayerAnimator> retain(this);
|
| + if (animation_metrics_reporter_)
|
| + animation->SetAnimationMetricsReporter(animation_metrics_reporter_);
|
| OnScheduled(animation);
|
| if (!StartSequenceImmediately(animation)) {
|
| // Attempt to preempt a running animation.
|
|
|