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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 DCHECK(!context_caps.gpu.iosurface || context_caps.gpu.texture_rectangle); | 323 DCHECK(!context_caps.gpu.iosurface || context_caps.gpu.texture_rectangle); |
324 | 324 |
325 capabilities_.using_egl_image = context_caps.gpu.egl_image_external; | 325 capabilities_.using_egl_image = context_caps.gpu.egl_image_external; |
326 | 326 |
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 capabilities_.using_map_image = context_caps.gpu.map_image; | 333 capabilities_.using_image = context_caps.gpu.image; |
334 | 334 |
335 capabilities_.using_discard_framebuffer = | 335 capabilities_.using_discard_framebuffer = |
336 context_caps.gpu.discard_framebuffer; | 336 context_caps.gpu.discard_framebuffer; |
337 | 337 |
338 capabilities_.allow_rasterize_on_demand = true; | 338 capabilities_.allow_rasterize_on_demand = true; |
339 | 339 |
340 use_sync_query_ = context_caps.gpu.sync_query; | 340 use_sync_query_ = context_caps.gpu.sync_query; |
341 | 341 |
342 InitializeSharedObjects(); | 342 InitializeSharedObjects(); |
343 } | 343 } |
(...skipping 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3201 context_support_->ScheduleOverlayPlane( | 3201 context_support_->ScheduleOverlayPlane( |
3202 overlay.plane_z_order, | 3202 overlay.plane_z_order, |
3203 overlay.transform, | 3203 overlay.transform, |
3204 pending_overlay_resources_.back()->texture_id(), | 3204 pending_overlay_resources_.back()->texture_id(), |
3205 overlay.display_rect, | 3205 overlay.display_rect, |
3206 overlay.uv_rect); | 3206 overlay.uv_rect); |
3207 } | 3207 } |
3208 } | 3208 } |
3209 | 3209 |
3210 } // namespace cc | 3210 } // namespace cc |
OLD | NEW |