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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 private: | 136 private: |
137 friend class GLRendererShaderPixelTest; | 137 friend class GLRendererShaderPixelTest; |
138 friend class GLRendererShaderTest; | 138 friend class GLRendererShaderTest; |
139 | 139 |
140 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); | 140 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); |
141 | 141 |
142 void DrawCheckerboardQuad(const DrawingFrame* frame, | 142 void DrawCheckerboardQuad(const DrawingFrame* frame, |
143 const CheckerboardDrawQuad* quad); | 143 const CheckerboardDrawQuad* quad); |
144 void DrawDebugBorderQuad(const DrawingFrame* frame, | 144 void DrawDebugBorderQuad(const DrawingFrame* frame, |
145 const DebugBorderDrawQuad* quad); | 145 const DebugBorderDrawQuad* quad); |
| 146 static bool ShouldApplyBackgroundFilters(DrawingFrame* frame, |
| 147 const RenderPassDrawQuad* quad); |
| 148 static bool ShouldApplyBlendModeUsingBlendFunc(const DrawQuad* quad); |
| 149 void ApplyBlendModeUsingBlendFunc(const DrawQuad* quad); |
| 150 void RestoreBlendFuncToDefault(const DrawQuad* quad); |
146 scoped_ptr<ScopedResource> GetBackgroundWithFilters( | 151 scoped_ptr<ScopedResource> GetBackgroundWithFilters( |
147 DrawingFrame* frame, | 152 DrawingFrame* frame, |
148 const RenderPassDrawQuad* quad, | 153 const RenderPassDrawQuad* quad, |
149 const gfx::Transform& contents_device_transform, | 154 const gfx::Transform& contents_device_transform, |
150 const gfx::Transform& contents_device_transformInverse, | 155 const gfx::Transform& contents_device_transformInverse, |
151 bool* background_changed); | 156 bool* background_changed); |
152 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); | 157 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); |
153 void DrawSolidColorQuad(const DrawingFrame* frame, | 158 void DrawSolidColorQuad(const DrawingFrame* frame, |
154 const SolidColorDrawQuad* quad); | 159 const SolidColorDrawQuad* quad); |
155 void DrawStreamVideoQuad(const DrawingFrame* frame, | 160 void DrawStreamVideoQuad(const DrawingFrame* frame, |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 438 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
434 #define GLC(context, x) \ | 439 #define GLC(context, x) \ |
435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 440 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
436 #else | 441 #else |
437 #define GLC(context, x) (x) | 442 #define GLC(context, x) (x) |
438 #endif | 443 #endif |
439 | 444 |
440 } // namespace cc | 445 } // namespace cc |
441 | 446 |
442 #endif // CC_OUTPUT_GL_RENDERER_H_ | 447 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |