| 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 "cc/resources/raster_worker_pool.h" | 5 #include "cc/resources/raster_worker_pool.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 decode_tasks.Insert(*it); | 132 decode_tasks.Insert(*it); |
| 133 | 133 |
| 134 tasks->Append( | 134 tasks->Append( |
| 135 RasterWorkerPool::CreateRasterTask( | 135 RasterWorkerPool::CreateRasterTask( |
| 136 NULL, | 136 NULL, |
| 137 NULL, | 137 NULL, |
| 138 gfx::Rect(), | 138 gfx::Rect(), |
| 139 1.0, | 139 1.0, |
| 140 HIGH_QUALITY_RASTER_MODE, | 140 HIGH_QUALITY_RASTER_MODE, |
| 141 false, | 141 false, |
| 142 RasterTaskMetadata(), | 142 false, |
| 143 TileResolution(), |
| 144 1, |
| 145 NULL, |
| 146 1, |
| 143 NULL, | 147 NULL, |
| 144 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted), | 148 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted), |
| 145 &decode_tasks), | 149 &decode_tasks), |
| 146 false); | 150 false); |
| 147 } | 151 } |
| 148 } | 152 } |
| 149 | 153 |
| 150 void RunBuildTaskGraphTest(const std::string test_name, | 154 void RunBuildTaskGraphTest(const std::string test_name, |
| 151 unsigned num_raster_tasks, | 155 unsigned num_raster_tasks, |
| 152 unsigned num_image_decode_tasks) { | 156 unsigned num_image_decode_tasks) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4); | 188 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4); |
| 185 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4); | 189 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4); |
| 186 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16); | 190 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16); |
| 187 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16); | 191 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16); |
| 188 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16); | 192 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16); |
| 189 } | 193 } |
| 190 | 194 |
| 191 } // namespace | 195 } // namespace |
| 192 | 196 |
| 193 } // namespace cc | 197 } // namespace cc |
| OLD | NEW |