| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 ResourceFormat current_framebuffer_format_; | 330 ResourceFormat current_framebuffer_format_; |
| 331 | 331 |
| 332 class SyncQuery; | 332 class SyncQuery; |
| 333 std::deque<std::unique_ptr<SyncQuery>> pending_sync_queries_; | 333 std::deque<std::unique_ptr<SyncQuery>> pending_sync_queries_; |
| 334 std::deque<std::unique_ptr<SyncQuery>> available_sync_queries_; | 334 std::deque<std::unique_ptr<SyncQuery>> available_sync_queries_; |
| 335 std::unique_ptr<SyncQuery> current_sync_query_; | 335 std::unique_ptr<SyncQuery> current_sync_query_; |
| 336 bool use_discard_framebuffer_ = false; | 336 bool use_discard_framebuffer_ = false; |
| 337 bool use_sync_query_ = false; | 337 bool use_sync_query_ = false; |
| 338 bool use_blend_equation_advanced_ = false; | 338 bool use_blend_equation_advanced_ = false; |
| 339 bool use_blend_equation_advanced_coherent_ = false; | 339 bool use_blend_equation_advanced_coherent_ = false; |
| 340 bool use_occlusion_query_ = false; |
| 341 bool use_swap_with_bounds_ = false; |
| 340 | 342 |
| 341 // Some overlays require that content is copied from a render pass into an | 343 // Some overlays require that content is copied from a render pass into an |
| 342 // overlay resource. This means the GLRenderer needs its own ResourcePool. | 344 // overlay resource. This means the GLRenderer needs its own ResourcePool. |
| 343 std::unique_ptr<ResourcePool> overlay_resource_pool_; | 345 std::unique_ptr<ResourcePool> overlay_resource_pool_; |
| 344 | 346 |
| 345 // If true, draw a green border after compositing a texture quad using GL. | 347 // If true, draw a green border after compositing a texture quad using GL. |
| 346 bool gl_composited_texture_quad_border_; | 348 bool gl_composited_texture_quad_border_; |
| 347 | 349 |
| 348 // The method FlippedFramebuffer determines whether the framebuffer associated | 350 // The method FlippedFramebuffer determines whether the framebuffer associated |
| 349 // with a DrawingFrame is flipped. It makes the assumption that the | 351 // with a DrawingFrame is flipped. It makes the assumption that the |
| 350 // DrawingFrame is being used as part of a render pass. If a DrawingFrame is | 352 // DrawingFrame is being used as part of a render pass. If a DrawingFrame is |
| 351 // not being used as part of a render pass, setting it here forces | 353 // not being used as part of a render pass, setting it here forces |
| 352 // FlippedFramebuffer to return |true|. | 354 // FlippedFramebuffer to return |true|. |
| 353 bool force_drawing_frame_framebuffer_unflipped_ = false; | 355 bool force_drawing_frame_framebuffer_unflipped_ = false; |
| 354 | 356 |
| 355 BoundGeometry bound_geometry_; | 357 BoundGeometry bound_geometry_; |
| 356 ColorLUTCache color_lut_cache_; | 358 ColorLUTCache color_lut_cache_; |
| 357 | 359 |
| 358 bool use_occlusion_query_; | |
| 359 unsigned offscreen_stencil_renderbuffer_id_ = 0; | 360 unsigned offscreen_stencil_renderbuffer_id_ = 0; |
| 360 gfx::Size offscreen_stencil_renderbuffer_size_; | 361 gfx::Size offscreen_stencil_renderbuffer_size_; |
| 361 | 362 |
| 362 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; | 363 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; |
| 363 | 364 |
| 364 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 365 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 365 }; | 366 }; |
| 366 | 367 |
| 367 } // namespace cc | 368 } // namespace cc |
| 368 | 369 |
| 369 #endif // CC_OUTPUT_GL_RENDERER_H_ | 370 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |