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

Side by Side Diff: cc/output/gl_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 | « cc/output/delegating_renderer.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/gl_renderer.h" 5 #include "cc/output/gl_renderer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 // The updater can access textures while the GLRenderer is using them. 234 // The updater can access textures while the GLRenderer is using them.
235 capabilities_.allow_partial_texture_updates = true; 235 capabilities_.allow_partial_texture_updates = true;
236 236
237 // Check for texture fast paths. Currently we always use MO8 textures, 237 // Check for texture fast paths. Currently we always use MO8 textures,
238 // so we only need to avoid POT textures if we have an NPOT fast-path. 238 // so we only need to avoid POT textures if we have an NPOT fast-path.
239 capabilities_.avoid_pow2_textures = context_caps.gpu.fast_npot_mo8_textures; 239 capabilities_.avoid_pow2_textures = context_caps.gpu.fast_npot_mo8_textures;
240 240
241 capabilities_.using_offscreen_context3d = true; 241 capabilities_.using_offscreen_context3d = true;
242 242
243 capabilities_.using_map_image = 243 capabilities_.using_map_image = settings_->use_map_image;
244 settings_->use_map_image && context_caps.gpu.map_image;
245 244
246 capabilities_.using_discard_framebuffer = 245 capabilities_.using_discard_framebuffer =
247 context_caps.gpu.discard_framebuffer; 246 context_caps.gpu.discard_framebuffer;
248 247
249 capabilities_.allow_rasterize_on_demand = true; 248 capabilities_.allow_rasterize_on_demand = true;
250 249
251 InitializeSharedObjects(); 250 InitializeSharedObjects();
252 } 251 }
253 252
254 GLRenderer::~GLRenderer() { 253 GLRenderer::~GLRenderer() {
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 is_scissor_enabled_ = false; 3040 is_scissor_enabled_ = false;
3042 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST)); 3041 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST));
3043 scissor_rect_needs_reset_ = true; 3042 scissor_rect_needs_reset_ = true;
3044 } 3043 }
3045 3044
3046 bool GLRenderer::IsContextLost() { 3045 bool GLRenderer::IsContextLost() {
3047 return output_surface_->context_provider()->IsContextLost(); 3046 return output_surface_->context_provider()->IsContextLost();
3048 } 3047 }
3049 3048
3050 } // namespace cc 3049 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698