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" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 private: | 144 private: |
145 friend class GLRendererShaderPixelTest; | 145 friend class GLRendererShaderPixelTest; |
146 friend class GLRendererShaderTest; | 146 friend class GLRendererShaderTest; |
147 | 147 |
148 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); | 148 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); |
149 | 149 |
150 void DrawCheckerboardQuad(const DrawingFrame* frame, | 150 void DrawCheckerboardQuad(const DrawingFrame* frame, |
151 const CheckerboardDrawQuad* quad); | 151 const CheckerboardDrawQuad* quad); |
152 void DrawDebugBorderQuad(const DrawingFrame* frame, | 152 void DrawDebugBorderQuad(const DrawingFrame* frame, |
153 const DebugBorderDrawQuad* quad); | 153 const DebugBorderDrawQuad* quad); |
154 scoped_ptr<ScopedResource> DrawBackgroundFilters( | 154 scoped_ptr<ScopedResource> GetBackgroundWithFilters( |
155 DrawingFrame* frame, | 155 DrawingFrame* frame, |
156 const RenderPassDrawQuad* quad, | 156 const RenderPassDrawQuad* quad, |
157 const gfx::Transform& contents_device_transform, | 157 const gfx::Transform& contents_device_transform, |
158 const gfx::Transform& contents_device_transformInverse); | 158 const gfx::Transform& contents_device_transformInverse, |
| 159 bool* background_changed); |
159 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); | 160 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); |
160 void DrawSolidColorQuad(const DrawingFrame* frame, | 161 void DrawSolidColorQuad(const DrawingFrame* frame, |
161 const SolidColorDrawQuad* quad); | 162 const SolidColorDrawQuad* quad); |
162 void DrawStreamVideoQuad(const DrawingFrame* frame, | 163 void DrawStreamVideoQuad(const DrawingFrame* frame, |
163 const StreamVideoDrawQuad* quad); | 164 const StreamVideoDrawQuad* quad); |
164 void EnqueueTextureQuad(const DrawingFrame* frame, | 165 void EnqueueTextureQuad(const DrawingFrame* frame, |
165 const TextureDrawQuad* quad); | 166 const TextureDrawQuad* quad); |
166 void FlushTextureQuadCache(); | 167 void FlushTextureQuadCache(); |
167 void DrawIOSurfaceQuad(const DrawingFrame* frame, | 168 void DrawIOSurfaceQuad(const DrawingFrame* frame, |
168 const IOSurfaceDrawQuad* quad); | 169 const IOSurfaceDrawQuad* quad); |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 445 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
445 #define GLC(context, x) \ | 446 #define GLC(context, x) \ |
446 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 447 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
447 #else | 448 #else |
448 #define GLC(context, x) (x) | 449 #define GLC(context, x) (x) |
449 #endif | 450 #endif |
450 | 451 |
451 } // namespace cc | 452 } // namespace cc |
452 | 453 |
453 #endif // CC_OUTPUT_GL_RENDERER_H_ | 454 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |