Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: cc/output/gl_renderer.h

Issue 2278283003: Refactor client visibility handling (Closed)
Patch Set: feedback Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/output/renderer_capabilities_impl.h" 19 #include "cc/output/renderer_capabilities_impl.h"
19 #include "cc/quads/debug_border_draw_quad.h" 20 #include "cc/quads/debug_border_draw_quad.h"
20 #include "cc/quads/render_pass_draw_quad.h" 21 #include "cc/quads/render_pass_draw_quad.h"
21 #include "cc/quads/solid_color_draw_quad.h" 22 #include "cc/quads/solid_color_draw_quad.h"
22 #include "cc/quads/tile_draw_quad.h" 23 #include "cc/quads/tile_draw_quad.h"
23 #include "cc/quads/yuv_video_draw_quad.h" 24 #include "cc/quads/yuv_video_draw_quad.h"
24 #include "ui/gfx/geometry/quad_f.h" 25 #include "ui/gfx/geometry/quad_f.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 [LAST_SAMPLER_TYPE + 1][2][2][2]; 489 [LAST_SAMPLER_TYPE + 1][2][2][2];
489 VideoStreamTextureProgram 490 VideoStreamTextureProgram
490 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; 491 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1];
491 492
492 DebugBorderProgram debug_border_program_; 493 DebugBorderProgram debug_border_program_;
493 SolidColorProgram solid_color_program_; 494 SolidColorProgram solid_color_program_;
494 SolidColorProgramAA solid_color_program_aa_; 495 SolidColorProgramAA solid_color_program_aa_;
495 496
496 gpu::gles2::GLES2Interface* gl_; 497 gpu::gles2::GLES2Interface* gl_;
497 gpu::ContextSupport* context_support_; 498 gpu::ContextSupport* context_support_;
499 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_;
498 500
499 TextureMailboxDeleter* texture_mailbox_deleter_; 501 TextureMailboxDeleter* texture_mailbox_deleter_;
500 502
501 gfx::Rect swap_buffer_rect_; 503 gfx::Rect swap_buffer_rect_;
502 gfx::Rect scissor_rect_; 504 gfx::Rect scissor_rect_;
503 bool is_using_bind_uniform_; 505 bool is_using_bind_uniform_;
504 bool is_scissor_enabled_; 506 bool is_scissor_enabled_;
505 bool scissor_rect_needs_reset_; 507 bool scissor_rect_needs_reset_;
506 bool stencil_shadow_; 508 bool stencil_shadow_;
507 bool blend_shadow_; 509 bool blend_shadow_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 bool force_drawing_frame_framebuffer_unflipped_ = false; 545 bool force_drawing_frame_framebuffer_unflipped_ = false;
544 546
545 BoundGeometry bound_geometry_; 547 BoundGeometry bound_geometry_;
546 ColorLUTCache color_lut_cache_; 548 ColorLUTCache color_lut_cache_;
547 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 549 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
548 }; 550 };
549 551
550 } // namespace cc 552 } // namespace cc
551 553
552 #endif // CC_OUTPUT_GL_RENDERER_H_ 554 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698