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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 std::map<gfx::ColorSpace, | 307 std::map<gfx::ColorSpace, |
308 std::map<gfx::ColorSpace, std::unique_ptr<gfx::ColorTransform>>> | 308 std::map<gfx::ColorSpace, std::unique_ptr<gfx::ColorTransform>>> |
309 color_transform_cache_; | 309 color_transform_cache_; |
310 | 310 |
311 gpu::gles2::GLES2Interface* gl_; | 311 gpu::gles2::GLES2Interface* gl_; |
312 gpu::ContextSupport* context_support_; | 312 gpu::ContextSupport* context_support_; |
313 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; | 313 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; |
314 | 314 |
315 TextureMailboxDeleter* texture_mailbox_deleter_; | 315 TextureMailboxDeleter* texture_mailbox_deleter_; |
316 | 316 |
317 gfx::Rect swap_buffer_rect_; | 317 gfx::Rect damage_rect_; |
318 std::vector<gfx::Rect> swap_content_bounds_; | 318 std::vector<gfx::Rect> swap_content_bounds_; |
319 gfx::Rect scissor_rect_; | 319 gfx::Rect scissor_rect_; |
320 bool is_scissor_enabled_ = false; | 320 bool is_scissor_enabled_ = false; |
321 bool stencil_shadow_ = false; | 321 bool stencil_shadow_ = false; |
322 bool blend_shadow_ = false; | 322 bool blend_shadow_ = false; |
323 const Program* current_program_ = nullptr; | 323 const Program* current_program_ = nullptr; |
324 TexturedQuadDrawCache draw_cache_; | 324 TexturedQuadDrawCache draw_cache_; |
325 int highp_threshold_min_ = 0; | 325 int highp_threshold_min_ = 0; |
326 int highp_threshold_cache_ = 0; | 326 int highp_threshold_cache_ = 0; |
327 | 327 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 gfx::Size offscreen_stencil_renderbuffer_size_; | 366 gfx::Size offscreen_stencil_renderbuffer_size_; |
367 | 367 |
368 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; | 368 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; |
369 | 369 |
370 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 370 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
371 }; | 371 }; |
372 | 372 |
373 } // namespace cc | 373 } // namespace cc |
374 | 374 |
375 #endif // CC_OUTPUT_GL_RENDERER_H_ | 375 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |