| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/compositor/layer_owner.h" | 5 #include "ui/compositor/layer_owner.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/test/null_task_runner.h" | 8 #include "base/test/null_task_runner.h" |
| 9 #include "cc/animation/animation_player.h" | 9 #include "cc/animation/animation_player.h" |
| 10 #include "cc/layers/layer_settings.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/compositor/compositor.h" | 11 #include "ui/compositor/compositor.h" |
| 13 #include "ui/compositor/layer.h" | 12 #include "ui/compositor/layer.h" |
| 14 #include "ui/compositor/layer_animation_observer.h" | 13 #include "ui/compositor/layer_animation_observer.h" |
| 15 #include "ui/compositor/layer_animator.h" | 14 #include "ui/compositor/layer_animator.h" |
| 16 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 15 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
| 17 #include "ui/compositor/scoped_layer_animation_settings.h" | 16 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 18 #include "ui/compositor/test/context_factories_for_test.h" | 17 #include "ui/compositor/test/context_factories_for_test.h" |
| 19 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
| 20 | 19 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 274 |
| 276 layer->SetOpacity(0.5f); | 275 layer->SetOpacity(0.5f); |
| 277 | 276 |
| 278 scoped_refptr<cc::AnimationPlayer> player = | 277 scoped_refptr<cc::AnimationPlayer> player = |
| 279 layer->GetAnimator()->GetAnimationPlayerForTesting(); | 278 layer->GetAnimator()->GetAnimationPlayerForTesting(); |
| 280 EXPECT_TRUE(player); | 279 EXPECT_TRUE(player); |
| 281 EXPECT_TRUE(player->animation_timeline()); | 280 EXPECT_TRUE(player->animation_timeline()); |
| 282 } | 281 } |
| 283 | 282 |
| 284 } // namespace ui | 283 } // namespace ui |
| OLD | NEW |