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

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

Issue 612093008: gpu: Rename Capabilities::map_image to Capabilities::image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should only be a rename Created 6 years, 2 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/output/renderer.cc ('k') | cc/trees/layer_tree_host_impl.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 }; 63 };
64 64
65 class PerfContextProvider : public ContextProvider { 65 class PerfContextProvider : public ContextProvider {
66 public: 66 public:
67 PerfContextProvider() : context_gl_(new PerfGLES2Interface) {} 67 PerfContextProvider() : context_gl_(new PerfGLES2Interface) {}
68 68
69 virtual bool BindToCurrentThread() OVERRIDE { return true; } 69 virtual bool BindToCurrentThread() OVERRIDE { return true; }
70 virtual Capabilities ContextCapabilities() OVERRIDE { 70 virtual Capabilities ContextCapabilities() OVERRIDE {
71 Capabilities capabilities; 71 Capabilities capabilities;
72 capabilities.gpu.map_image = true; 72 capabilities.gpu.image = true;
73 capabilities.gpu.sync_query = true; 73 capabilities.gpu.sync_query = true;
74 return capabilities; 74 return capabilities;
75 } 75 }
76 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE { 76 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE {
77 return context_gl_.get(); 77 return context_gl_.get();
78 } 78 }
79 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { return &support_; } 79 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { return &support_; }
80 virtual class GrContext* GrContext() OVERRIDE { return NULL; } 80 virtual class GrContext* GrContext() OVERRIDE { return NULL; }
81 virtual bool IsContextLost() OVERRIDE { return false; } 81 virtual bool IsContextLost() OVERRIDE { return false; }
82 virtual void VerifyContexts() OVERRIDE {} 82 virtual void VerifyContexts() OVERRIDE {}
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 RunBuildRasterTaskQueueTest("1_0", 1, 0); 517 RunBuildRasterTaskQueueTest("1_0", 1, 0);
518 RunBuildRasterTaskQueueTest("32_0", 32, 0); 518 RunBuildRasterTaskQueueTest("32_0", 32, 0);
519 RunBuildRasterTaskQueueTest("1_1", 1, 1); 519 RunBuildRasterTaskQueueTest("1_1", 1, 1);
520 RunBuildRasterTaskQueueTest("32_1", 32, 1); 520 RunBuildRasterTaskQueueTest("32_1", 32, 1);
521 RunBuildRasterTaskQueueTest("1_4", 1, 4); 521 RunBuildRasterTaskQueueTest("1_4", 1, 4);
522 RunBuildRasterTaskQueueTest("32_4", 32, 4); 522 RunBuildRasterTaskQueueTest("32_4", 32, 4);
523 } 523 }
524 524
525 } // namespace 525 } // namespace
526 } // namespace cc 526 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/renderer.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698