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 #ifndef CC_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 ResourceFormat current_framebuffer_format_; | 513 ResourceFormat current_framebuffer_format_; |
514 | 514 |
515 class SyncQuery; | 515 class SyncQuery; |
516 std::deque<std::unique_ptr<SyncQuery>> pending_sync_queries_; | 516 std::deque<std::unique_ptr<SyncQuery>> pending_sync_queries_; |
517 std::deque<std::unique_ptr<SyncQuery>> available_sync_queries_; | 517 std::deque<std::unique_ptr<SyncQuery>> available_sync_queries_; |
518 std::unique_ptr<SyncQuery> current_sync_query_; | 518 std::unique_ptr<SyncQuery> current_sync_query_; |
519 bool use_discard_framebuffer_; | 519 bool use_discard_framebuffer_; |
520 bool use_sync_query_; | 520 bool use_sync_query_; |
521 bool use_blend_equation_advanced_; | 521 bool use_blend_equation_advanced_; |
522 bool use_blend_equation_advanced_coherent_; | 522 bool use_blend_equation_advanced_coherent_; |
| 523 bool use_swap_with_damage_; |
523 | 524 |
524 // Some overlays require that content is copied from a render pass into an | 525 // Some overlays require that content is copied from a render pass into an |
525 // overlay resource. This means the GLRenderer needs its own ResourcePool. | 526 // overlay resource. This means the GLRenderer needs its own ResourcePool. |
526 std::unique_ptr<ResourcePool> overlay_resource_pool_; | 527 std::unique_ptr<ResourcePool> overlay_resource_pool_; |
527 | 528 |
528 // If true, draw a green border after compositing a texture quad using GL. | 529 // If true, draw a green border after compositing a texture quad using GL. |
529 bool gl_composited_texture_quad_border_; | 530 bool gl_composited_texture_quad_border_; |
530 | 531 |
531 // The method FlippedFramebuffer determines whether the framebuffer associated | 532 // The method FlippedFramebuffer determines whether the framebuffer associated |
532 // with a DrawingFrame is flipped. It makes the assumption that the | 533 // with a DrawingFrame is flipped. It makes the assumption that the |
533 // DrawingFrame is being used as part of a render pass. If a DrawingFrame is | 534 // DrawingFrame is being used as part of a render pass. If a DrawingFrame is |
534 // not being used as part of a render pass, setting it here forces | 535 // not being used as part of a render pass, setting it here forces |
535 // FlippedFramebuffer to return |true|. | 536 // FlippedFramebuffer to return |true|. |
536 bool force_drawing_frame_framebuffer_unflipped_ = false; | 537 bool force_drawing_frame_framebuffer_unflipped_ = false; |
537 | 538 |
538 BoundGeometry bound_geometry_; | 539 BoundGeometry bound_geometry_; |
539 ColorLUTCache color_lut_cache_; | 540 ColorLUTCache color_lut_cache_; |
540 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 541 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
541 }; | 542 }; |
542 | 543 |
543 } // namespace cc | 544 } // namespace cc |
544 | 545 |
545 #endif // CC_OUTPUT_GL_RENDERER_H_ | 546 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |