Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: cc/output/gl_renderer.h

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698