| Index: cc/trees/layer_tree_host_unittest_animation.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc
|
| index df283dec543b97e74e423efd5de528ef59b7d0ce..7178e5b4dd101e4f0c720e7d664a8dd83867aa33 100644
|
| --- a/cc/trees/layer_tree_host_unittest_animation.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_animation.cc
|
| @@ -291,7 +291,6 @@ class LayerTreeHostAnimationTestTickAnimationWhileBackgrounded
|
| SINGLE_AND_MULTI_THREAD_TEST_F(
|
| LayerTreeHostAnimationTestTickAnimationWhileBackgrounded);
|
|
|
| -// Ensures that animations continue to be ticked when we are backgrounded.
|
| class LayerTreeHostAnimationTestAddAnimationWithTimingFunction
|
| : public LayerTreeHostAnimationTest {
|
| public:
|
| @@ -301,6 +300,7 @@ class LayerTreeHostAnimationTestAddAnimationWithTimingFunction
|
| LayerTreeHostAnimationTest::SetupTree();
|
| content_ = FakeContentLayer::Create(&client_);
|
| content_->SetBounds(gfx::Size(4, 4));
|
| + content_->set_layer_animation_delegate(this);
|
| layer_tree_host()->root_layer()->AddChild(content_);
|
| }
|
|
|
| @@ -308,9 +308,7 @@ class LayerTreeHostAnimationTestAddAnimationWithTimingFunction
|
| PostAddAnimationToMainThread(content_.get());
|
| }
|
|
|
| - virtual void AnimateLayers(
|
| - LayerTreeHostImpl* host_impl,
|
| - base::TimeTicks monotonic_time) OVERRIDE {
|
| + virtual void NotifyAnimationStarted(double wallClockTime) OVERRIDE {
|
| LayerAnimationController* controller =
|
| layer_tree_host()->root_layer()->children()[0]->
|
| layer_animation_controller();
|
| @@ -331,14 +329,8 @@ class LayerTreeHostAnimationTestAddAnimationWithTimingFunction
|
| // because of the default ease timing function.
|
| EXPECT_FLOAT_EQ(linearly_interpolated_opacity, curve->GetValue(time));
|
|
|
| - LayerAnimationController* controller_impl =
|
| - host_impl->active_tree()->root_layer()->children()[0]->
|
| - layer_animation_controller();
|
| - Animation* animation_impl =
|
| - controller_impl->GetAnimation(Animation::Opacity);
|
| -
|
| controller->RemoveAnimation(animation->id());
|
| - controller_impl->RemoveAnimation(animation_impl->id());
|
| +
|
| EndTest();
|
| }
|
|
|
|
|