| OLD | NEW |
| 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 Loading... |
| 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 2849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3198 context_support_->ScheduleOverlayPlane( | 3196 context_support_->ScheduleOverlayPlane( |
| 3199 overlay.plane_z_order, | 3197 overlay.plane_z_order, |
| 3200 overlay.transform, | 3198 overlay.transform, |
| 3201 pending_overlay_resources_.back()->texture_id(), | 3199 pending_overlay_resources_.back()->texture_id(), |
| 3202 overlay.display_rect, | 3200 overlay.display_rect, |
| 3203 overlay.uv_rect); | 3201 overlay.uv_rect); |
| 3204 } | 3202 } |
| 3205 } | 3203 } |
| 3206 | 3204 |
| 3207 } // namespace cc | 3205 } // namespace cc |
| OLD | NEW |