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

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

Issue 17625002: cc: Eliminate tile.h's dependency on tile_manager.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.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 RasterTaskMetadata(), 148 false,
149 TileResolution(),
150 1,
151 NULL,
152 1,
149 NULL, 153 NULL,
150 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted), 154 base::Bind(&RasterWorkerPoolPerfTest::OnRasterTaskCompleted),
151 &decode_tasks), 155 &decode_tasks),
152 false); 156 false);
153 } 157 }
154 } 158 }
155 159
156 void RunBuildTaskGraphTest(const std::string test_name, 160 void RunBuildTaskGraphTest(const std::string test_name,
157 unsigned num_raster_tasks, 161 unsigned num_raster_tasks,
158 unsigned num_image_decode_tasks) { 162 unsigned num_image_decode_tasks) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4); 194 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4);
191 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4); 195 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4);
192 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16); 196 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16);
193 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16); 197 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16);
194 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16); 198 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16);
195 } 199 }
196 200
197 } // namespace 201 } // namespace
198 202
199 } // namespace cc 203 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698