| 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 ShouldApplyBlendModeUsingBlendFunc(const DrawQuad* quad); |
| 147 void ApplyBlendModeUsingBlendFunc(const DrawQuad* quad); |
| 148 void RestoreBlendFuncToDefault(); |
| 146 scoped_ptr<ScopedResource> GetBackgroundWithFilters( | 149 scoped_ptr<ScopedResource> GetBackgroundWithFilters( |
| 147 DrawingFrame* frame, | 150 DrawingFrame* frame, |
| 148 const RenderPassDrawQuad* quad, | 151 const RenderPassDrawQuad* quad, |
| 149 const gfx::Transform& contents_device_transform, | 152 const gfx::Transform& contents_device_transform, |
| 150 const gfx::Transform& contents_device_transformInverse, | 153 const gfx::Transform& contents_device_transformInverse, |
| 151 bool* background_changed); | 154 bool* background_changed); |
| 152 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); | 155 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); |
| 153 void DrawSolidColorQuad(const DrawingFrame* frame, | 156 void DrawSolidColorQuad(const DrawingFrame* frame, |
| 154 const SolidColorDrawQuad* quad); | 157 const SolidColorDrawQuad* quad); |
| 155 void DrawStreamVideoQuad(const DrawingFrame* frame, | 158 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) | 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 |