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

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

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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.h ('k') | cc/resources/resource_provider.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 "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
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
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
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.h ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698