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

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

Issue 140333006: cc: Move internal::Task::did_schedule_ to internal::WorkerPoolTask. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cc_unittests Created 6 years, 10 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/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/time/time.h" 7 #include "base/time/time.h"
8 #include "cc/test/lap_timer.h" 8 #include "cc/test/lap_timer.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/perf/perf_test.h" 10 #include "testing/perf/perf_test.h"
11 #include "third_party/khronos/GLES2/gl2.h" 11 #include "third_party/khronos/GLES2/gl2.h"
12 12
13 namespace cc { 13 namespace cc {
14 namespace { 14 namespace {
15 15
16 static const int kTimeLimitMillis = 2000; 16 static const int kTimeLimitMillis = 2000;
17 static const int kWarmupRuns = 5; 17 static const int kWarmupRuns = 5;
18 static const int kTimeCheckInterval = 10; 18 static const int kTimeCheckInterval = 10;
19 19
20 class PerfRasterWorkerPool : public RasterWorkerPool, 20 class PerfRasterWorkerPool : public RasterWorkerPool {
21 public internal::WorkerPoolTaskClient {
22 public: 21 public:
23 PerfRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {} 22 PerfRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {}
24 virtual ~PerfRasterWorkerPool() {} 23 virtual ~PerfRasterWorkerPool() {}
25 24
26 static scoped_ptr<PerfRasterWorkerPool> Create() { 25 static scoped_ptr<PerfRasterWorkerPool> Create() {
27 return make_scoped_ptr(new PerfRasterWorkerPool); 26 return make_scoped_ptr(new PerfRasterWorkerPool);
28 } 27 }
29 28
30 // Overridden from RasterWorkerPool: 29 // Overridden from RasterWorkerPool:
31 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE { 30 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 RunBuildTaskGraphTest("10_4", 10, 4); 211 RunBuildTaskGraphTest("10_4", 10, 4);
213 RunBuildTaskGraphTest("100_4", 100, 4); 212 RunBuildTaskGraphTest("100_4", 100, 4);
214 RunBuildTaskGraphTest("1000_4", 1000, 4); 213 RunBuildTaskGraphTest("1000_4", 1000, 4);
215 RunBuildTaskGraphTest("10_16", 10, 16); 214 RunBuildTaskGraphTest("10_16", 10, 16);
216 RunBuildTaskGraphTest("100_16", 100, 16); 215 RunBuildTaskGraphTest("100_16", 100, 16);
217 RunBuildTaskGraphTest("1000_16", 1000, 16); 216 RunBuildTaskGraphTest("1000_16", 1000, 16);
218 } 217 }
219 218
220 } // namespace 219 } // namespace
221 } // namespace cc 220 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/raster_worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698