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

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

Issue 19305002: Merge 210098 "cc: Eliminate tile.h's dependency on tile_manager.h" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
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 | Annotate | Revision Log
« 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.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
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
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
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