| 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_vector.h" | 10 #include "cc/base/scoped_ptr_vector.h" |
| 11 #include "cc/output/direct_renderer.h" | 11 #include "cc/output/direct_renderer.h" |
| 12 #include "cc/output/gl_renderer_draw_cache.h" | 12 #include "cc/output/gl_renderer_draw_cache.h" |
| 13 #include "cc/output/program_binding.h" | 13 #include "cc/output/program_binding.h" |
| 14 #include "cc/output/renderer.h" | 14 #include "cc/output/renderer.h" |
| 15 #include "cc/quads/checkerboard_draw_quad.h" | 15 #include "cc/quads/checkerboard_draw_quad.h" |
| 16 #include "cc/quads/debug_border_draw_quad.h" | 16 #include "cc/quads/debug_border_draw_quad.h" |
| 17 #include "cc/quads/io_surface_draw_quad.h" | 17 #include "cc/quads/io_surface_draw_quad.h" |
| 18 #include "cc/quads/render_pass_draw_quad.h" | 18 #include "cc/quads/render_pass_draw_quad.h" |
| 19 #include "cc/quads/solid_color_draw_quad.h" | 19 #include "cc/quads/solid_color_draw_quad.h" |
| 20 #include "cc/quads/tile_draw_quad.h" | 20 #include "cc/quads/tile_draw_quad.h" |
| 21 #include "cc/quads/yuv_video_draw_quad.h" | 21 #include "cc/quads/yuv_video_draw_quad.h" |
| 22 #include "ui/gfx/quad_f.h" | 22 #include "ui/gfx/quad_f.h" |
| 23 | 23 |
| 24 class SkBitmap; | 24 class SkBitmap; |
| 25 | 25 |
| 26 namespace blink { class WebGraphicsContext3D; } | 26 namespace blink { class WebGraphicsContext3D; } |
| 27 | 27 |
| 28 namespace gpu { |
| 29 namespace gles2 { |
| 30 class GLES2Interface; |
| 31 } |
| 32 } |
| 33 |
| 28 namespace cc { | 34 namespace cc { |
| 29 | 35 |
| 30 class ContextProvider; | |
| 31 class GLRendererShaderTest; | 36 class GLRendererShaderTest; |
| 32 class OutputSurface; | 37 class OutputSurface; |
| 33 class PictureDrawQuad; | 38 class PictureDrawQuad; |
| 34 class ScopedResource; | 39 class ScopedResource; |
| 35 class StreamVideoDrawQuad; | 40 class StreamVideoDrawQuad; |
| 36 class TextureDrawQuad; | 41 class TextureDrawQuad; |
| 37 class TextureMailboxDeleter; | 42 class TextureMailboxDeleter; |
| 38 class GeometryBinding; | 43 class GeometryBinding; |
| 39 class ScopedEnsureFramebufferAllocation; | 44 class ScopedEnsureFramebufferAllocation; |
| 40 | 45 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions]; | 396 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions]; |
| 392 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions]; | 397 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions]; |
| 393 VideoStreamTextureProgram | 398 VideoStreamTextureProgram |
| 394 video_stream_texture_program_[NumTexCoordPrecisions]; | 399 video_stream_texture_program_[NumTexCoordPrecisions]; |
| 395 | 400 |
| 396 DebugBorderProgram debug_border_program_; | 401 DebugBorderProgram debug_border_program_; |
| 397 SolidColorProgram solid_color_program_; | 402 SolidColorProgram solid_color_program_; |
| 398 SolidColorProgramAA solid_color_program_aa_; | 403 SolidColorProgramAA solid_color_program_aa_; |
| 399 | 404 |
| 400 blink::WebGraphicsContext3D* context_; | 405 blink::WebGraphicsContext3D* context_; |
| 406 gpu::gles2::GLES2Interface* gl_; |
| 401 gpu::ContextSupport* context_support_; | 407 gpu::ContextSupport* context_support_; |
| 402 | 408 |
| 403 skia::RefPtr<GrContext> gr_context_; | 409 skia::RefPtr<GrContext> gr_context_; |
| 404 skia::RefPtr<SkCanvas> sk_canvas_; | 410 skia::RefPtr<SkCanvas> sk_canvas_; |
| 405 | 411 |
| 406 TextureMailboxDeleter* texture_mailbox_deleter_; | 412 TextureMailboxDeleter* texture_mailbox_deleter_; |
| 407 | 413 |
| 408 gfx::Rect swap_buffer_rect_; | 414 gfx::Rect swap_buffer_rect_; |
| 409 gfx::Rect scissor_rect_; | 415 gfx::Rect scissor_rect_; |
| 410 gfx::Rect viewport_; | 416 gfx::Rect viewport_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 441 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 447 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 442 #define GLC(context, x) \ | 448 #define GLC(context, x) \ |
| 443 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 449 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 444 #else | 450 #else |
| 445 #define GLC(context, x) (x) | 451 #define GLC(context, x) (x) |
| 446 #endif | 452 #endif |
| 447 | 453 |
| 448 } // namespace cc | 454 } // namespace cc |
| 449 | 455 |
| 450 #endif // CC_OUTPUT_GL_RENDERER_H_ | 456 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |