OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 virtual ~PerfRasterWorkerPool() {} | 31 virtual ~PerfRasterWorkerPool() {} |
32 | 32 |
33 static scoped_ptr<PerfRasterWorkerPool> Create() { | 33 static scoped_ptr<PerfRasterWorkerPool> Create() { |
34 return make_scoped_ptr(new PerfRasterWorkerPool); | 34 return make_scoped_ptr(new PerfRasterWorkerPool); |
35 } | 35 } |
36 | 36 |
37 // Overridden from RasterWorkerPool: | 37 // Overridden from RasterWorkerPool: |
38 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE { | 38 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE { |
39 NOTREACHED(); | 39 NOTREACHED(); |
40 } | 40 } |
| 41 virtual GLenum GetResourceFormat() const OVERRIDE { |
| 42 NOTREACHED(); |
| 43 return GL_RGBA; |
| 44 } |
41 virtual void OnRasterTasksFinished() OVERRIDE { | 45 virtual void OnRasterTasksFinished() OVERRIDE { |
42 NOTREACHED(); | 46 NOTREACHED(); |
43 } | 47 } |
44 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE { | 48 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE { |
45 NOTREACHED(); | 49 NOTREACHED(); |
46 } | 50 } |
47 | 51 |
48 void SetRasterTasks(RasterTask::Queue* queue) { | 52 void SetRasterTasks(RasterTask::Queue* queue) { |
49 RasterWorkerPool::SetRasterTasks(queue); | 53 RasterWorkerPool::SetRasterTasks(queue); |
50 | 54 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4); | 235 RunBuildTaskGraphTest("build_task_graph_100_4", 100, 4); |
232 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4); | 236 RunBuildTaskGraphTest("build_task_graph_1000_4", 1000, 4); |
233 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16); | 237 RunBuildTaskGraphTest("build_task_graph_10_16", 10, 16); |
234 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16); | 238 RunBuildTaskGraphTest("build_task_graph_100_16", 100, 16); |
235 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16); | 239 RunBuildTaskGraphTest("build_task_graph_1000_16", 1000, 16); |
236 } | 240 } |
237 | 241 |
238 } // namespace | 242 } // namespace |
239 | 243 |
240 } // namespace cc | 244 } // namespace cc |
OLD | NEW |