| 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 <deque> | 8 #include <deque> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void DrawRPDQ(const DrawRenderPassDrawQuadParams& params); | 149 void DrawRPDQ(const DrawRenderPassDrawQuadParams& params); |
| 150 | 150 |
| 151 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); | 151 static void ToGLMatrix(float* gl_matrix, const gfx::Transform& transform); |
| 152 | 152 |
| 153 void DiscardPixels(); | 153 void DiscardPixels(); |
| 154 void ClearFramebuffer(DrawingFrame* frame); | 154 void ClearFramebuffer(DrawingFrame* frame); |
| 155 void SetViewport(); | 155 void SetViewport(); |
| 156 | 156 |
| 157 void DrawDebugBorderQuad(const DrawingFrame* frame, | 157 void DrawDebugBorderQuad(const DrawingFrame* frame, |
| 158 const DebugBorderDrawQuad* quad); | 158 const DebugBorderDrawQuad* quad); |
| 159 static bool IsDefaultBlendMode(SkXfermode::Mode blend_mode) { | 159 static bool IsDefaultBlendMode(SkBlendMode blend_mode) { |
| 160 return blend_mode == SkXfermode::kSrcOver_Mode; | 160 return blend_mode == SkBlendMode::kSrcOver; |
| 161 } | 161 } |
| 162 bool CanApplyBlendModeUsingBlendFunc(SkXfermode::Mode blend_mode); | 162 bool CanApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode); |
| 163 void ApplyBlendModeUsingBlendFunc(SkXfermode::Mode blend_mode); | 163 void ApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode); |
| 164 void RestoreBlendFuncToDefault(SkXfermode::Mode blend_mode); | 164 void RestoreBlendFuncToDefault(SkBlendMode blend_mode); |
| 165 | 165 |
| 166 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( | 166 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( |
| 167 DrawingFrame* frame, | 167 DrawingFrame* frame, |
| 168 const RenderPassDrawQuad* quad, | 168 const RenderPassDrawQuad* quad, |
| 169 const gfx::Transform& contents_device_transform, | 169 const gfx::Transform& contents_device_transform, |
| 170 const gfx::QuadF* clip_region, | 170 const gfx::QuadF* clip_region, |
| 171 bool use_aa, | 171 bool use_aa, |
| 172 gfx::Rect* unclipped_rect); | 172 gfx::Rect* unclipped_rect); |
| 173 std::unique_ptr<ScopedResource> GetBackdropTexture( | 173 std::unique_ptr<ScopedResource> GetBackdropTexture( |
| 174 DrawingFrame* frame, | 174 DrawingFrame* frame, |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 bool force_drawing_frame_framebuffer_unflipped_ = false; | 541 bool force_drawing_frame_framebuffer_unflipped_ = false; |
| 542 | 542 |
| 543 BoundGeometry bound_geometry_; | 543 BoundGeometry bound_geometry_; |
| 544 ColorLUTCache color_lut_cache_; | 544 ColorLUTCache color_lut_cache_; |
| 545 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 545 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 546 }; | 546 }; |
| 547 | 547 |
| 548 } // namespace cc | 548 } // namespace cc |
| 549 | 549 |
| 550 #endif // CC_OUTPUT_GL_RENDERER_H_ | 550 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |