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