| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "cc/animation/animation_host.h" | 5 #include "cc/animation/animation_host.h" |
| 6 | 6 |
| 7 #include "base/threading/thread_task_runner_handle.h" | 7 #include "base/threading/thread_task_runner_handle.h" |
| 8 #include "cc/animation/animation_id_provider.h" | 8 #include "cc/animation/animation_id_provider.h" |
| 9 #include "cc/animation/animation_player.h" | 9 #include "cc/animation/animation_player.h" |
| 10 #include "cc/animation/animation_timeline.h" | 10 #include "cc/animation/animation_timeline.h" |
| 11 #include "cc/debug/lap_timer.h" | 11 #include "cc/debug/lap_timer.h" |
| 12 #include "cc/layers/layer.h" | |
| 13 #include "cc/test/fake_impl_task_runner_provider.h" | 12 #include "cc/test/fake_impl_task_runner_provider.h" |
| 14 #include "cc/test/fake_layer_tree_host.h" | 13 #include "cc/test/fake_layer_tree_host.h" |
| 15 #include "cc/test/fake_layer_tree_host_client.h" | 14 #include "cc/test/fake_layer_tree_host_client.h" |
| 16 #include "cc/test/fake_layer_tree_host_impl.h" | 15 #include "cc/test/fake_layer_tree_host_impl.h" |
| 17 #include "cc/test/stub_layer_tree_host_single_thread_client.h" | 16 #include "cc/test/stub_layer_tree_host_single_thread_client.h" |
| 18 #include "cc/test/test_task_graph_runner.h" | 17 #include "cc/test/test_task_graph_runner.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "testing/perf/perf_test.h" | 19 #include "testing/perf/perf_test.h" |
| 21 | 20 |
| 22 namespace cc { | 21 namespace cc { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 CreateTimelines(10); | 160 CreateTimelines(10); |
| 162 DoTest(); | 161 DoTest(); |
| 163 } | 162 } |
| 164 | 163 |
| 165 TEST_F(AnimationHostPerfTest, Push1000TimelinesPropertiesTo) { | 164 TEST_F(AnimationHostPerfTest, Push1000TimelinesPropertiesTo) { |
| 166 CreateTimelines(1000); | 165 CreateTimelines(1000); |
| 167 DoTest(); | 166 DoTest(); |
| 168 } | 167 } |
| 169 | 168 |
| 170 } // namespace cc | 169 } // namespace cc |
| OLD | NEW |