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

Side by Side Diff: cc/output/delegating_renderer.cc

Issue 205193006: gpu: Remove map_image field from gpu::Capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move TODO Created 6 years, 9 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 | « no previous file | cc/output/gl_renderer.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/delegating_renderer.h" 5 #include "cc/output/delegating_renderer.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 capabilities_.using_map_image = settings_->use_map_image; 65 capabilities_.using_map_image = settings_->use_map_image;
66 return true; 66 return true;
67 } 67 }
68 68
69 const ContextProvider::Capabilities& caps = 69 const ContextProvider::Capabilities& caps =
70 output_surface_->context_provider()->ContextCapabilities(); 70 output_surface_->context_provider()->ContextCapabilities();
71 71
72 DCHECK(!caps.gpu.iosurface || caps.gpu.texture_rectangle); 72 DCHECK(!caps.gpu.iosurface || caps.gpu.texture_rectangle);
73 73
74 capabilities_.using_egl_image = caps.gpu.egl_image_external; 74 capabilities_.using_egl_image = caps.gpu.egl_image_external;
75 capabilities_.using_map_image = 75 capabilities_.using_map_image = settings_->use_map_image;
76 settings_->use_map_image && caps.gpu.map_image;
77 76
78 capabilities_.allow_rasterize_on_demand = false; 77 capabilities_.allow_rasterize_on_demand = false;
79 78
80 return true; 79 return true;
81 } 80 }
82 81
83 DelegatingRenderer::~DelegatingRenderer() {} 82 DelegatingRenderer::~DelegatingRenderer() {}
84 83
85 const RendererCapabilitiesImpl& DelegatingRenderer::Capabilities() const { 84 const RendererCapabilitiesImpl& DelegatingRenderer::Capabilities() const {
86 return capabilities_; 85 return capabilities_;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 gpu::ManagedMemoryStats stats; 177 gpu::ManagedMemoryStats stats;
179 stats.bytes_required = bytes_visible; 178 stats.bytes_required = bytes_visible;
180 stats.bytes_nice_to_have = bytes_visible_and_nearby; 179 stats.bytes_nice_to_have = bytes_visible_and_nearby;
181 stats.bytes_allocated = bytes_allocated; 180 stats.bytes_allocated = bytes_allocated;
182 stats.backbuffer_requested = false; 181 stats.backbuffer_requested = false;
183 182
184 context_provider->ContextSupport()->SendManagedMemoryStats(stats); 183 context_provider->ContextSupport()->SendManagedMemoryStats(stats);
185 } 184 }
186 185
187 } // namespace cc 186 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698