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 "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_deque.h" | 10 #include "cc/base/scoped_ptr_deque.h" |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 VideoStreamTextureProgram | 385 VideoStreamTextureProgram |
386 video_stream_texture_program_[NumTexCoordPrecisions]; | 386 video_stream_texture_program_[NumTexCoordPrecisions]; |
387 | 387 |
388 DebugBorderProgram debug_border_program_; | 388 DebugBorderProgram debug_border_program_; |
389 SolidColorProgram solid_color_program_; | 389 SolidColorProgram solid_color_program_; |
390 SolidColorProgramAA solid_color_program_aa_; | 390 SolidColorProgramAA solid_color_program_aa_; |
391 | 391 |
392 gpu::gles2::GLES2Interface* gl_; | 392 gpu::gles2::GLES2Interface* gl_; |
393 gpu::ContextSupport* context_support_; | 393 gpu::ContextSupport* context_support_; |
394 | 394 |
395 skia::RefPtr<GrContext> gr_context_; | |
396 skia::RefPtr<SkCanvas> sk_canvas_; | |
397 | |
398 TextureMailboxDeleter* texture_mailbox_deleter_; | 395 TextureMailboxDeleter* texture_mailbox_deleter_; |
399 | 396 |
400 gfx::Rect swap_buffer_rect_; | 397 gfx::Rect swap_buffer_rect_; |
401 gfx::Rect scissor_rect_; | 398 gfx::Rect scissor_rect_; |
402 gfx::Rect viewport_; | 399 gfx::Rect viewport_; |
403 bool is_backbuffer_discarded_; | 400 bool is_backbuffer_discarded_; |
404 bool is_using_bind_uniform_; | 401 bool is_using_bind_uniform_; |
405 bool is_scissor_enabled_; | 402 bool is_scissor_enabled_; |
406 bool scissor_rect_needs_reset_; | 403 bool scissor_rect_needs_reset_; |
407 bool stencil_shadow_; | 404 bool stencil_shadow_; |
(...skipping 28 matching lines...) Expand all Loading... |
436 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 433 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
437 #define GLC(context, x) \ | 434 #define GLC(context, x) \ |
438 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
439 #else | 436 #else |
440 #define GLC(context, x) (x) | 437 #define GLC(context, x) (x) |
441 #endif | 438 #endif |
442 | 439 |
443 } // namespace cc | 440 } // namespace cc |
444 | 441 |
445 #endif // CC_OUTPUT_GL_RENDERER_H_ | 442 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |