| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); | 146 static bool ShouldApplyBlendModeUsingBlendFunc(const DrawQuad* quad); |
| 147 void ApplyBlendModeUsingBlendFunc(const DrawQuad* quad); | 147 void ApplyBlendModeUsingBlendFunc(const DrawQuad* quad); |
| 148 void RestoreBlendFuncToDefault(); | 148 void RestoreBlendFuncToDefault(); |
| 149 scoped_ptr<ScopedResource> GetBackgroundWithFilters( | 149 |
| 150 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( |
| 150 DrawingFrame* frame, | 151 DrawingFrame* frame, |
| 151 const RenderPassDrawQuad* quad, | 152 const RenderPassDrawQuad* quad, |
| 152 const gfx::Transform& contents_device_transform, | 153 const gfx::Transform& contents_device_transform); |
| 153 const gfx::Transform& contents_device_transformInverse, | 154 scoped_ptr<ScopedResource> GetBackdropTexture(const gfx::Rect& bounding_rect); |
| 154 bool* background_changed); | 155 |
| 156 static bool ShouldApplyBackgroundFilters(DrawingFrame* frame, |
| 157 const RenderPassDrawQuad* quad); |
| 158 skia::RefPtr<SkImage> ApplyBackgroundFilters( |
| 159 DrawingFrame* frame, |
| 160 const RenderPassDrawQuad* quad, |
| 161 ScopedResource* background_texture); |
| 162 scoped_ptr<ScopedResource> ApplyInverseTransformForBackgroundFilters( |
| 163 DrawingFrame* frame, |
| 164 const RenderPassDrawQuad* quad, |
| 165 const gfx::Transform& contents_device_transform_inverse, |
| 166 ScopedResource* background_texture, |
| 167 skia::RefPtr<SkImage> backdrop_bitmap, |
| 168 const gfx::Rect& backdrop_bounding_rect); |
| 169 |
| 155 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); | 170 void DrawRenderPassQuad(DrawingFrame* frame, const RenderPassDrawQuad* quad); |
| 156 void DrawSolidColorQuad(const DrawingFrame* frame, | 171 void DrawSolidColorQuad(const DrawingFrame* frame, |
| 157 const SolidColorDrawQuad* quad); | 172 const SolidColorDrawQuad* quad); |
| 158 void DrawStreamVideoQuad(const DrawingFrame* frame, | 173 void DrawStreamVideoQuad(const DrawingFrame* frame, |
| 159 const StreamVideoDrawQuad* quad); | 174 const StreamVideoDrawQuad* quad); |
| 160 void EnqueueTextureQuad(const DrawingFrame* frame, | 175 void EnqueueTextureQuad(const DrawingFrame* frame, |
| 161 const TextureDrawQuad* quad); | 176 const TextureDrawQuad* quad); |
| 162 void FlushTextureQuadCache(); | 177 void FlushTextureQuadCache(); |
| 163 void DrawIOSurfaceQuad(const DrawingFrame* frame, | 178 void DrawIOSurfaceQuad(const DrawingFrame* frame, |
| 164 const IOSurfaceDrawQuad* quad); | 179 const IOSurfaceDrawQuad* quad); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 451 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 437 #define GLC(context, x) \ | 452 #define GLC(context, x) \ |
| 438 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 453 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 439 #else | 454 #else |
| 440 #define GLC(context, x) (x) | 455 #define GLC(context, x) (x) |
| 441 #endif | 456 #endif |
| 442 | 457 |
| 443 } // namespace cc | 458 } // namespace cc |
| 444 | 459 |
| 445 #endif // CC_OUTPUT_GL_RENDERER_H_ | 460 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |