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

Side by Side Diff: cc/output/renderer.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.h ('k') | cc/resources/raster_worker_pool_perftest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/output/renderer.h" 5 #include "cc/output/renderer.h"
6 6
7 #include "cc/quads/render_pass_id.h" 7 #include "cc/quads/render_pass_id.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const { 11 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const {
12 return false; 12 return false;
13 } 13 }
14 14
15 void Renderer::SetVisible(bool visible) { 15 void Renderer::SetVisible(bool visible) {
16 if (visible_ == visible) 16 if (visible_ == visible)
17 return; 17 return;
18 18
19 visible_ = visible; 19 visible_ = visible;
20 DidChangeVisibility(); 20 DidChangeVisibility();
21 } 21 }
22 22
23 RendererCapabilitiesImpl::RendererCapabilitiesImpl() 23 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
24 : best_texture_format(RGBA_8888), 24 : best_texture_format(RGBA_8888),
25 allow_partial_texture_updates(false), 25 allow_partial_texture_updates(false),
26 max_texture_size(0), 26 max_texture_size(0),
27 using_shared_memory_resources(false), 27 using_shared_memory_resources(false),
28 using_partial_swap(false), 28 using_partial_swap(false),
29 using_egl_image(false), 29 using_egl_image(false),
30 using_map_image(false), 30 using_image(false),
31 using_discard_framebuffer(false), 31 using_discard_framebuffer(false),
32 allow_rasterize_on_demand(false) {} 32 allow_rasterize_on_demand(false) {
33 }
33 34
34 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} 35 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
35 36
36 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { 37 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
37 return RendererCapabilities(best_texture_format, 38 return RendererCapabilities(best_texture_format,
38 allow_partial_texture_updates, 39 allow_partial_texture_updates,
39 max_texture_size, 40 max_texture_size,
40 using_shared_memory_resources); 41 using_shared_memory_resources);
41 } 42 }
42 43
43 } // namespace cc 44 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/renderer.h ('k') | cc/resources/raster_worker_pool_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698