| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/location.h" | 5 #include "base/location.h" |
| 6 #include "base/thread_task_runner_handle.h" | 6 #include "base/thread_task_runner_handle.h" |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "cc/debug/lap_timer.h" | 8 #include "cc/debug/lap_timer.h" |
| 9 #include "cc/raster/raster_buffer.h" | 9 #include "cc/raster/raster_buffer.h" |
| 10 #include "cc/test/begin_frame_args_test.h" | 10 #include "cc/test/begin_frame_args_test.h" |
| 11 #include "cc/test/fake_impl_proxy.h" | 11 #include "cc/test/fake_impl_proxy.h" |
| 12 #include "cc/test/fake_layer_tree_host_impl.h" | 12 #include "cc/test/fake_layer_tree_host_impl.h" |
| 13 #include "cc/test/fake_output_surface.h" | 13 #include "cc/test/fake_output_surface.h" |
| 14 #include "cc/test/fake_output_surface_client.h" | 14 #include "cc/test/fake_output_surface_client.h" |
| 15 #include "cc/test/fake_picture_layer_impl.h" | 15 #include "cc/test/fake_picture_layer_impl.h" |
| 16 #include "cc/test/fake_picture_pile_impl.h" | 16 #include "cc/test/fake_picture_pile_impl.h" |
| 17 #include "cc/test/fake_tile_manager.h" | 17 #include "cc/test/fake_tile_manager.h" |
| 18 #include "cc/test/fake_tile_manager_client.h" | 18 #include "cc/test/fake_tile_manager_client.h" |
| 19 #include "cc/test/impl_side_painting_settings.h" | 19 #include "cc/test/impl_side_painting_settings.h" |
| 20 #include "cc/test/test_shared_bitmap_manager.h" | 20 #include "cc/test/test_shared_bitmap_manager.h" |
| 21 #include "cc/test/test_task_graph_runner.h" | 21 #include "cc/test/test_task_graph_runner.h" |
| 22 #include "cc/test/test_tile_priorities.h" | 22 #include "cc/test/test_tile_priorities.h" |
| 23 #include "cc/tiles/tile.h" | 23 #include "cc/tiles/tile.h" |
| 24 #include "cc/tiles/tile_priority.h" | 24 #include "cc/tiles/tile_priority.h" |
| 25 #include "cc/trees/layer_tree_impl.h" | 25 #include "cc/trees/layer_tree_impl.h" |
| 26 | 26 |
| 27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
| 28 #include "testing/perf/perf_test.h" | 28 #include "testing/perf/perf_test.h" |
| 29 | 29 |
| 30 #include "ui/gfx/frame_time.h" | |
| 31 | |
| 32 namespace cc { | 30 namespace cc { |
| 33 namespace { | 31 namespace { |
| 34 | 32 |
| 35 static const int kTimeLimitMillis = 2000; | 33 static const int kTimeLimitMillis = 2000; |
| 36 static const int kWarmupRuns = 5; | 34 static const int kWarmupRuns = 5; |
| 37 static const int kTimeCheckInterval = 10; | 35 static const int kTimeCheckInterval = 10; |
| 38 | 36 |
| 39 class FakeTileTaskRunnerImpl : public TileTaskRunner, public TileTaskClient { | 37 class FakeTileTaskRunnerImpl : public TileTaskRunner, public TileTaskClient { |
| 40 public: | 38 public: |
| 41 // Overridden from TileTaskRunner: | 39 // Overridden from TileTaskRunner: |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); | 474 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); |
| 477 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); | 475 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); |
| 478 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); | 476 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); |
| 479 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); | 477 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); |
| 480 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); | 478 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); |
| 481 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); | 479 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); |
| 482 } | 480 } |
| 483 | 481 |
| 484 } // namespace | 482 } // namespace |
| 485 } // namespace cc | 483 } // namespace cc |
| OLD | NEW |