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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index e666633cfa09458037c854466a1bdd9dd5f4fb9b..97beb81635b7206dc65c95f8057d8cf8d173a805 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -152,12 +152,12 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
void DrawDebugBorderQuad(const DrawingFrame* frame,
const DebugBorderDrawQuad* quad);
- static bool IsDefaultBlendMode(SkXfermode::Mode blend_mode) {
- return blend_mode == SkXfermode::kSrcOver_Mode;
+ static bool IsDefaultBlendMode(SkBlendMode blend_mode) {
+ return blend_mode == SkBlendMode::kSrcOver;
}
- bool CanApplyBlendModeUsingBlendFunc(SkXfermode::Mode blend_mode);
- void ApplyBlendModeUsingBlendFunc(SkXfermode::Mode blend_mode);
- void RestoreBlendFuncToDefault(SkXfermode::Mode blend_mode);
+ bool CanApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode);
+ void ApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode);
+ void RestoreBlendFuncToDefault(SkBlendMode blend_mode);
gfx::Rect GetBackdropBoundingBoxForRenderPassQuad(
DrawingFrame* frame,
« 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