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/context_cache_controller.h" |
16 #include "cc/output/direct_renderer.h" | 16 #include "cc/output/direct_renderer.h" |
17 #include "cc/output/gl_renderer_draw_cache.h" | 17 #include "cc/output/gl_renderer_draw_cache.h" |
18 #include "cc/output/program_binding.h" | 18 #include "cc/output/program_binding.h" |
19 #include "cc/quads/debug_border_draw_quad.h" | 19 #include "cc/quads/debug_border_draw_quad.h" |
20 #include "cc/quads/render_pass_draw_quad.h" | 20 #include "cc/quads/render_pass_draw_quad.h" |
21 #include "cc/quads/solid_color_draw_quad.h" | 21 #include "cc/quads/solid_color_draw_quad.h" |
22 #include "cc/quads/tile_draw_quad.h" | 22 #include "cc/quads/tile_draw_quad.h" |
23 #include "cc/quads/yuv_video_draw_quad.h" | 23 #include "cc/quads/yuv_video_draw_quad.h" |
24 #include "ui/events/latency_info.h" | 24 #include "ui/events/latency_info.h" |
25 #include "ui/gfx/geometry/quad_f.h" | 25 #include "ui/gfx/geometry/quad_f.h" |
26 | 26 |
27 class SkBitmap; | |
28 | |
29 namespace gpu { | 27 namespace gpu { |
30 namespace gles2 { | 28 namespace gles2 { |
31 class GLES2Interface; | 29 class GLES2Interface; |
32 } | 30 } |
33 } | 31 } |
34 | 32 |
35 namespace cc { | 33 namespace cc { |
36 class GLRendererShaderTest; | 34 class GLRendererShaderTest; |
37 class OutputSurface; | 35 class OutputSurface; |
38 class PictureDrawQuad; | |
39 class Resource; | 36 class Resource; |
40 class ResourcePool; | 37 class ResourcePool; |
41 class ScopedResource; | 38 class ScopedResource; |
42 class StreamVideoDrawQuad; | 39 class StreamVideoDrawQuad; |
43 class TextureDrawQuad; | 40 class TextureDrawQuad; |
44 class TextureMailboxDeleter; | 41 class TextureMailboxDeleter; |
45 class StaticGeometryBinding; | 42 class StaticGeometryBinding; |
46 class DynamicGeometryBinding; | 43 class DynamicGeometryBinding; |
47 class ScopedEnsureFramebufferAllocation; | |
48 struct DrawRenderPassDrawQuadParams; | 44 struct DrawRenderPassDrawQuadParams; |
49 | 45 |
50 // Class that handles drawing of composited render layers using GL. | 46 // Class that handles drawing of composited render layers using GL. |
51 class CC_EXPORT GLRenderer : public DirectRenderer { | 47 class CC_EXPORT GLRenderer : public DirectRenderer { |
52 public: | 48 public: |
53 class ScopedUseGrContext; | 49 class ScopedUseGrContext; |
54 | 50 |
55 GLRenderer(const RendererSettings* settings, | 51 GLRenderer(const RendererSettings* settings, |
56 OutputSurface* output_surface, | 52 OutputSurface* output_surface, |
57 ResourceProvider* resource_provider, | 53 ResourceProvider* resource_provider, |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 bool force_drawing_frame_framebuffer_unflipped_ = false; | 537 bool force_drawing_frame_framebuffer_unflipped_ = false; |
542 | 538 |
543 BoundGeometry bound_geometry_; | 539 BoundGeometry bound_geometry_; |
544 ColorLUTCache color_lut_cache_; | 540 ColorLUTCache color_lut_cache_; |
545 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 541 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
546 }; | 542 }; |
547 | 543 |
548 } // namespace cc | 544 } // namespace cc |
549 | 545 |
550 #endif // CC_OUTPUT_GL_RENDERER_H_ | 546 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |