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

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

Issue 18370002: cc: Made use color estimator a const instead of a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cc_perftests compile error Created 7 years, 5 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 | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/tile_manager.h » ('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 "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 it != image_decode_tasks.end(); ++it) 138 it != image_decode_tasks.end(); ++it)
139 decode_tasks.Insert(*it); 139 decode_tasks.Insert(*it);
140 140
141 tasks->Append( 141 tasks->Append(
142 RasterWorkerPool::CreateRasterTask( 142 RasterWorkerPool::CreateRasterTask(
143 NULL, 143 NULL,
144 NULL, 144 NULL,
145 gfx::Rect(), 145 gfx::Rect(),
146 1.0, 146 1.0,
147 HIGH_QUALITY_RASTER_MODE, 147 HIGH_QUALITY_RASTER_MODE,
148 false,
149 RasterTaskMetadata(), 148 RasterTaskMetadata(),
150 NULL, 149 NULL,
151 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted), 150 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted),
152 &decode_tasks), 151 &decode_tasks),
153 false); 152 false);
154 } 153 }
155 } 154 }
156 155
157 void RunBuildTaskGraphTest(const std::string test_name, 156 void RunBuildTaskGraphTest(const std::string test_name,
158 unsigned num_raster_tasks, 157 unsigned num_raster_tasks,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4); 190 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4);
192 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4); 191 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4);
193 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16); 192 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16);
194 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16); 193 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16);
195 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16); 194 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16);
196 } 195 }
197 196
198 } // namespace 197 } // namespace
199 198
200 } // namespace cc 199 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698