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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 class GLRendererShaderTest; | 35 class GLRendererShaderTest; |
36 class OutputSurface; | 36 class OutputSurface; |
37 class PictureDrawQuad; | 37 class PictureDrawQuad; |
38 class ScopedResource; | 38 class ScopedResource; |
39 class StreamVideoDrawQuad; | 39 class StreamVideoDrawQuad; |
40 class TextureDrawQuad; | 40 class TextureDrawQuad; |
41 class TextureMailboxDeleter; | 41 class TextureMailboxDeleter; |
42 class GeometryBinding; | 42 class GeometryBinding; |
43 class ScopedEnsureFramebufferAllocation; | 43 class ScopedEnsureFramebufferAllocation; |
| 44 class FilterDrawQuad; |
44 | 45 |
45 // Class that handles drawing of composited render layers using GL. | 46 // Class that handles drawing of composited render layers using GL. |
46 class CC_EXPORT GLRenderer : public DirectRenderer { | 47 class CC_EXPORT GLRenderer : public DirectRenderer { |
47 public: | 48 public: |
48 class ScopedUseGrContext; | 49 class ScopedUseGrContext; |
49 | 50 |
50 static scoped_ptr<GLRenderer> Create( | 51 static scoped_ptr<GLRenderer> Create( |
51 RendererClient* client, | 52 RendererClient* client, |
52 const LayerTreeSettings* settings, | 53 const LayerTreeSettings* settings, |
53 OutputSurface* output_surface, | 54 OutputSurface* output_surface, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void DrawIOSurfaceQuad(const DrawingFrame* frame, | 161 void DrawIOSurfaceQuad(const DrawingFrame* frame, |
161 const IOSurfaceDrawQuad* quad); | 162 const IOSurfaceDrawQuad* quad); |
162 void DrawTileQuad(const DrawingFrame* frame, const TileDrawQuad* quad); | 163 void DrawTileQuad(const DrawingFrame* frame, const TileDrawQuad* quad); |
163 void DrawContentQuad(const DrawingFrame* frame, | 164 void DrawContentQuad(const DrawingFrame* frame, |
164 const ContentDrawQuadBase* quad, | 165 const ContentDrawQuadBase* quad, |
165 ResourceProvider::ResourceId resource_id); | 166 ResourceProvider::ResourceId resource_id); |
166 void DrawYUVVideoQuad(const DrawingFrame* frame, | 167 void DrawYUVVideoQuad(const DrawingFrame* frame, |
167 const YUVVideoDrawQuad* quad); | 168 const YUVVideoDrawQuad* quad); |
168 void DrawPictureQuad(const DrawingFrame* frame, | 169 void DrawPictureQuad(const DrawingFrame* frame, |
169 const PictureDrawQuad* quad); | 170 const PictureDrawQuad* quad); |
| 171 void DrawFilterContentQuad(const DrawingFrame* frame, |
| 172 const FilterDrawQuad* quad); |
170 | 173 |
171 void SetShaderOpacity(float opacity, int alpha_location); | 174 void SetShaderOpacity(float opacity, int alpha_location); |
172 void SetShaderQuadF(const gfx::QuadF& quad, int quad_location); | 175 void SetShaderQuadF(const gfx::QuadF& quad, int quad_location); |
173 void DrawQuadGeometry(const DrawingFrame* frame, | 176 void DrawQuadGeometry(const DrawingFrame* frame, |
174 const gfx::Transform& draw_transform, | 177 const gfx::Transform& draw_transform, |
175 const gfx::RectF& quad_rect, | 178 const gfx::RectF& quad_rect, |
176 int matrix_location); | 179 int matrix_location); |
177 void SetUseProgram(unsigned program); | 180 void SetUseProgram(unsigned program); |
178 | 181 |
179 void CopyTextureToFramebuffer(const DrawingFrame* frame, | 182 void CopyTextureToFramebuffer(const DrawingFrame* frame, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 436 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
434 #define GLC(context, x) \ | 437 #define GLC(context, x) \ |
435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 438 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
436 #else | 439 #else |
437 #define GLC(context, x) (x) | 440 #define GLC(context, x) (x) |
438 #endif | 441 #endif |
439 | 442 |
440 } // namespace cc | 443 } // namespace cc |
441 | 444 |
442 #endif // CC_OUTPUT_GL_RENDERER_H_ | 445 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |