Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Side by Side Diff: cc/resources/raster_worker_pool_perftest.cc

Issue 23658023: Fix some missing const reference on function parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/resources/tile_manager_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/time.h" 7 #include "base/time/time.h"
8 #include "cc/test/lap_timer.h" 8 #include "cc/test/lap_timer.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/perf/perf_test.h" 10 #include "testing/perf/perf_test.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 1, 169 1,
170 NULL, 170 NULL,
171 1, 171 1,
172 NULL, 172 NULL,
173 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted), 173 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted),
174 &decode_tasks), 174 &decode_tasks),
175 false); 175 false);
176 } 176 }
177 } 177 }
178 178
179 void RunBuildTaskGraphTest(const std::string test_name, 179 void RunBuildTaskGraphTest(const std::string& test_name,
180 unsigned num_raster_tasks, 180 unsigned num_raster_tasks,
181 unsigned num_image_decode_tasks) { 181 unsigned num_image_decode_tasks) {
182 timer_.Reset(); 182 timer_.Reset();
183 RasterWorkerPool::RasterTask::Queue tasks; 183 RasterWorkerPool::RasterTask::Queue tasks;
184 CreateTasks(&tasks, num_raster_tasks, num_image_decode_tasks); 184 CreateTasks(&tasks, num_raster_tasks, num_image_decode_tasks);
185 raster_worker_pool_->SetRasterTasks(&tasks); 185 raster_worker_pool_->SetRasterTasks(&tasks);
186 do { 186 do {
187 raster_worker_pool_->BuildTaskGraph(); 187 raster_worker_pool_->BuildTaskGraph();
188 timer_.NextLap(); 188 timer_.NextLap();
189 } while (!timer_.HasTimeLimitExpired()); 189 } while (!timer_.HasTimeLimitExpired());
(...skipping 22 matching lines...) Expand all
212 RunBuildTaskGraphTest("100_4", 100, 4); 212 RunBuildTaskGraphTest("100_4", 100, 4);
213 RunBuildTaskGraphTest("1000_4", 1000, 4); 213 RunBuildTaskGraphTest("1000_4", 1000, 4);
214 RunBuildTaskGraphTest("10_16", 10, 16); 214 RunBuildTaskGraphTest("10_16", 10, 16);
215 RunBuildTaskGraphTest("100_16", 100, 16); 215 RunBuildTaskGraphTest("100_16", 100, 16);
216 RunBuildTaskGraphTest("1000_16", 1000, 16); 216 RunBuildTaskGraphTest("1000_16", 1000, 16);
217 } 217 }
218 218
219 } // namespace 219 } // namespace
220 220
221 } // namespace cc 221 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/resources/tile_manager_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698