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 |
11 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "cc/base/cc_export.h" | 13 #include "cc/base/cc_export.h" |
14 #include "cc/output/color_lut_cache.h" | 14 #include "cc/output/color_lut_cache.h" |
| 15 #include "cc/output/context_cache_controller.h" |
15 #include "cc/output/direct_renderer.h" | 16 #include "cc/output/direct_renderer.h" |
16 #include "cc/output/gl_renderer_draw_cache.h" | 17 #include "cc/output/gl_renderer_draw_cache.h" |
17 #include "cc/output/program_binding.h" | 18 #include "cc/output/program_binding.h" |
18 #include "cc/quads/debug_border_draw_quad.h" | 19 #include "cc/quads/debug_border_draw_quad.h" |
19 #include "cc/quads/render_pass_draw_quad.h" | 20 #include "cc/quads/render_pass_draw_quad.h" |
20 #include "cc/quads/solid_color_draw_quad.h" | 21 #include "cc/quads/solid_color_draw_quad.h" |
21 #include "cc/quads/tile_draw_quad.h" | 22 #include "cc/quads/tile_draw_quad.h" |
22 #include "cc/quads/yuv_video_draw_quad.h" | 23 #include "cc/quads/yuv_video_draw_quad.h" |
23 #include "ui/gfx/geometry/quad_f.h" | 24 #include "ui/gfx/geometry/quad_f.h" |
24 | 25 |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 [LAST_SAMPLER_TYPE + 1][2][2][2]; | 484 [LAST_SAMPLER_TYPE + 1][2][2][2]; |
484 VideoStreamTextureProgram | 485 VideoStreamTextureProgram |
485 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 486 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; |
486 | 487 |
487 DebugBorderProgram debug_border_program_; | 488 DebugBorderProgram debug_border_program_; |
488 SolidColorProgram solid_color_program_; | 489 SolidColorProgram solid_color_program_; |
489 SolidColorProgramAA solid_color_program_aa_; | 490 SolidColorProgramAA solid_color_program_aa_; |
490 | 491 |
491 gpu::gles2::GLES2Interface* gl_; | 492 gpu::gles2::GLES2Interface* gl_; |
492 gpu::ContextSupport* context_support_; | 493 gpu::ContextSupport* context_support_; |
| 494 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; |
493 | 495 |
494 TextureMailboxDeleter* texture_mailbox_deleter_; | 496 TextureMailboxDeleter* texture_mailbox_deleter_; |
495 | 497 |
496 gfx::Rect swap_buffer_rect_; | 498 gfx::Rect swap_buffer_rect_; |
497 gfx::Rect scissor_rect_; | 499 gfx::Rect scissor_rect_; |
498 bool is_using_bind_uniform_; | 500 bool is_using_bind_uniform_; |
499 bool is_scissor_enabled_; | 501 bool is_scissor_enabled_; |
500 bool scissor_rect_needs_reset_; | 502 bool scissor_rect_needs_reset_; |
501 bool stencil_shadow_; | 503 bool stencil_shadow_; |
502 bool blend_shadow_; | 504 bool blend_shadow_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 bool force_drawing_frame_framebuffer_unflipped_ = false; | 540 bool force_drawing_frame_framebuffer_unflipped_ = false; |
539 | 541 |
540 BoundGeometry bound_geometry_; | 542 BoundGeometry bound_geometry_; |
541 ColorLUTCache color_lut_cache_; | 543 ColorLUTCache color_lut_cache_; |
542 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 544 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
543 }; | 545 }; |
544 | 546 |
545 } // namespace cc | 547 } // namespace cc |
546 | 548 |
547 #endif // CC_OUTPUT_GL_RENDERER_H_ | 549 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |