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_map_image = | 337 capabilities_.using_map_image = context_caps.gpu.map_image; |
338 settings_->use_map_image && context_caps.gpu.map_image; | |
339 | 338 |
340 capabilities_.using_discard_framebuffer = | 339 capabilities_.using_discard_framebuffer = |
341 context_caps.gpu.discard_framebuffer; | 340 context_caps.gpu.discard_framebuffer; |
342 | 341 |
343 capabilities_.allow_rasterize_on_demand = true; | 342 capabilities_.allow_rasterize_on_demand = true; |
344 | 343 |
345 use_sync_query_ = context_caps.gpu.sync_query; | 344 use_sync_query_ = context_caps.gpu.sync_query; |
346 | 345 |
347 InitializeSharedObjects(); | 346 InitializeSharedObjects(); |
348 } | 347 } |
(...skipping 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3200 context_support_->ScheduleOverlayPlane( | 3199 context_support_->ScheduleOverlayPlane( |
3201 overlay.plane_z_order, | 3200 overlay.plane_z_order, |
3202 overlay.transform, | 3201 overlay.transform, |
3203 pending_overlay_resources_.back()->texture_id(), | 3202 pending_overlay_resources_.back()->texture_id(), |
3204 overlay.display_rect, | 3203 overlay.display_rect, |
3205 overlay.uv_rect); | 3204 overlay.uv_rect); |
3206 } | 3205 } |
3207 } | 3206 } |
3208 | 3207 |
3209 } // namespace cc | 3208 } // namespace cc |
OLD | NEW |