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

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

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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_source.h ('k') | cc/resources/raster_worker_pool_unittest.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/test/test_simple_task_runner.h" 7 #include "base/test/test_simple_task_runner.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "cc/debug/lap_timer.h" 9 #include "cc/debug/lap_timer.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 scoped_ptr<ScopedResource> resource_; 160 scoped_ptr<ScopedResource> resource_;
161 scoped_ptr<RasterBuffer> raster_buffer_; 161 scoped_ptr<RasterBuffer> raster_buffer_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(PerfRasterTaskImpl); 163 DISALLOW_COPY_AND_ASSIGN(PerfRasterTaskImpl);
164 }; 164 };
165 165
166 class RasterWorkerPoolPerfTestBase { 166 class RasterWorkerPoolPerfTestBase {
167 public: 167 public:
168 typedef std::vector<scoped_refptr<RasterTask>> RasterTaskVector; 168 typedef std::vector<scoped_refptr<RasterTask>> RasterTaskVector;
169 169
170 enum NamedTaskSet { REQUIRED_FOR_ACTIVATION = 0, ALL = 1 }; 170 enum NamedTaskSet { ALL, REQUIRED_FOR_ACTIVATION, REQUIRED_FOR_DRAW };
171 171
172 RasterWorkerPoolPerfTestBase() 172 RasterWorkerPoolPerfTestBase()
173 : context_provider_(make_scoped_refptr(new PerfContextProvider)), 173 : context_provider_(make_scoped_refptr(new PerfContextProvider)),
174 task_runner_(new base::TestSimpleTaskRunner), 174 task_runner_(new base::TestSimpleTaskRunner),
175 task_graph_runner_(new TaskGraphRunner), 175 task_graph_runner_(new TaskGraphRunner),
176 timer_(kWarmupRuns, 176 timer_(kWarmupRuns,
177 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 177 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
178 kTimeCheckInterval) {} 178 kTimeCheckInterval) {}
179 179
180 void CreateImageDecodeTasks(unsigned num_image_decode_tasks, 180 void CreateImageDecodeTasks(unsigned num_image_decode_tasks,
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 RunBuildRasterTaskQueueTest("1_0", 1, 0); 524 RunBuildRasterTaskQueueTest("1_0", 1, 0);
525 RunBuildRasterTaskQueueTest("32_0", 32, 0); 525 RunBuildRasterTaskQueueTest("32_0", 32, 0);
526 RunBuildRasterTaskQueueTest("1_1", 1, 1); 526 RunBuildRasterTaskQueueTest("1_1", 1, 1);
527 RunBuildRasterTaskQueueTest("32_1", 32, 1); 527 RunBuildRasterTaskQueueTest("32_1", 32, 1);
528 RunBuildRasterTaskQueueTest("1_4", 1, 4); 528 RunBuildRasterTaskQueueTest("1_4", 1, 4);
529 RunBuildRasterTaskQueueTest("32_4", 32, 4); 529 RunBuildRasterTaskQueueTest("32_4", 32, 4);
530 } 530 }
531 531
532 } // namespace 532 } // namespace
533 } // namespace cc 533 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_source.h ('k') | cc/resources/raster_worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698