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

Unified Diff: cc/resources/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/worker_pool_perftest.cc
diff --git a/cc/resources/worker_pool_perftest.cc b/cc/resources/worker_pool_perftest.cc
index 346b291df5228d4f3ca6c70d7d6b88b8f55657e6..06a2b9806df4825275078301a3701305b120e6bc 100644
--- a/cc/resources/worker_pool_perftest.cc
+++ b/cc/resources/worker_pool_perftest.cc
@@ -160,13 +160,13 @@ class WorkerPoolPerfTest : public testing::Test {
worker_pool_->CheckForCompletedTasks();
}
- void AfterTest(const std::string test_name) {
+ void AfterTest(const std::string& test_name) {
// Format matches chrome/test/perf/perf_test.h:PrintResult
printf(
"*RESULT %s: %.2f runs/s\n", test_name.c_str(), timer_.LapsPerSecond());
}
- void RunScheduleTasksTest(const std::string test_name,
+ void RunScheduleTasksTest(const std::string& test_name,
unsigned max_depth,
unsigned num_children_per_node) {
timer_.Reset();
@@ -186,7 +186,7 @@ class WorkerPoolPerfTest : public testing::Test {
timer_.LapsPerSecond(), "runs/s", true);
}
- void RunExecuteTasksTest(const std::string test_name,
+ void RunExecuteTasksTest(const std::string& test_name,
unsigned max_depth,
unsigned num_children_per_node) {
timer_.Reset();
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698