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

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

Issue 73923003: Shared Raster Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build Error for Mac, macro conflict, moving setter to WorkerPool. Created 6 years, 11 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/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"
(...skipping 11 matching lines...) Expand all
22 // Overridden from internal::WorkerPoolTask: 22 // Overridden from internal::WorkerPoolTask:
23 virtual void RunOnWorkerThread(unsigned thread_index) OVERRIDE {} 23 virtual void RunOnWorkerThread(unsigned thread_index) OVERRIDE {}
24 virtual void CompleteOnOriginThread() OVERRIDE {} 24 virtual void CompleteOnOriginThread() OVERRIDE {}
25 25
26 private: 26 private:
27 virtual ~PerfWorkerPoolTaskImpl() {} 27 virtual ~PerfWorkerPoolTaskImpl() {}
28 }; 28 };
29 29
30 class PerfRasterWorkerPool : public RasterWorkerPool { 30 class PerfRasterWorkerPool : public RasterWorkerPool {
31 public: 31 public:
32 PerfRasterWorkerPool() : RasterWorkerPool(NULL, NULL, 1) {} 32 PerfRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {}
33 virtual ~PerfRasterWorkerPool() {} 33 virtual ~PerfRasterWorkerPool() {}
34 34
35 static scoped_ptr<PerfRasterWorkerPool> Create() { 35 static scoped_ptr<PerfRasterWorkerPool> Create() {
36 return make_scoped_ptr(new PerfRasterWorkerPool); 36 return make_scoped_ptr(new PerfRasterWorkerPool);
37 } 37 }
38 38
39 // Overridden from RasterWorkerPool: 39 // Overridden from RasterWorkerPool:
40 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE { 40 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {
41 NOTREACHED(); 41 NOTREACHED();
42 } 42 }
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 RunBuildTaskGraphTest("100_4", 100, 4); 224 RunBuildTaskGraphTest("100_4", 100, 4);
225 RunBuildTaskGraphTest("1000_4", 1000, 4); 225 RunBuildTaskGraphTest("1000_4", 1000, 4);
226 RunBuildTaskGraphTest("10_16", 10, 16); 226 RunBuildTaskGraphTest("10_16", 10, 16);
227 RunBuildTaskGraphTest("100_16", 100, 16); 227 RunBuildTaskGraphTest("100_16", 100, 16);
228 RunBuildTaskGraphTest("1000_16", 1000, 16); 228 RunBuildTaskGraphTest("1000_16", 1000, 16);
229 } 229 }
230 230
231 } // namespace 231 } // namespace
232 232
233 } // namespace cc 233 } // 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