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

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

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 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/direct_renderer.cc ('k') | cc/output/gl_renderer_unittest.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 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 capabilities_.max_texture_size = resource_provider_->max_texture_size(); 327 capabilities_.max_texture_size = resource_provider_->max_texture_size();
328 capabilities_.best_texture_format = resource_provider_->best_texture_format(); 328 capabilities_.best_texture_format = resource_provider_->best_texture_format();
329 329
330 // The updater can access textures while the GLRenderer is using them. 330 // The updater can access textures while the GLRenderer is using them.
331 capabilities_.allow_partial_texture_updates = true; 331 capabilities_.allow_partial_texture_updates = true;
332 332
333 // Check for texture fast paths. Currently we always use MO8 textures, 333 // Check for texture fast paths. Currently we always use MO8 textures,
334 // so we only need to avoid POT textures if we have an NPOT fast-path. 334 // so we only need to avoid POT textures if we have an NPOT fast-path.
335 capabilities_.avoid_pow2_textures = context_caps.gpu.fast_npot_mo8_textures; 335 capabilities_.avoid_pow2_textures = context_caps.gpu.fast_npot_mo8_textures;
336 336
337 capabilities_.using_offscreen_context3d = false;
338
339 capabilities_.using_map_image = 337 capabilities_.using_map_image =
340 settings_->use_map_image && context_caps.gpu.map_image; 338 settings_->use_map_image && context_caps.gpu.map_image;
341 339
342 capabilities_.using_discard_framebuffer = 340 capabilities_.using_discard_framebuffer =
343 context_caps.gpu.discard_framebuffer; 341 context_caps.gpu.discard_framebuffer;
344 342
345 capabilities_.allow_rasterize_on_demand = true; 343 capabilities_.allow_rasterize_on_demand = true;
346 344
347 use_sync_query_ = context_caps.gpu.sync_query; 345 use_sync_query_ = context_caps.gpu.sync_query;
348 346
(...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after
3202 context_support_->ScheduleOverlayPlane( 3200 context_support_->ScheduleOverlayPlane(
3203 overlay.plane_z_order, 3201 overlay.plane_z_order,
3204 overlay.transform, 3202 overlay.transform,
3205 pending_overlay_resources_.back()->texture_id(), 3203 pending_overlay_resources_.back()->texture_id(),
3206 overlay.display_rect, 3204 overlay.display_rect,
3207 overlay.uv_rect); 3205 overlay.uv_rect);
3208 } 3206 }
3209 } 3207 }
3210 3208
3211 } // namespace cc 3209 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698