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

Unified Diff: cc/output/gl_renderer.h

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: 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
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 07ede049a7274ee93edda2d37c7e425dc0b1d36c..b451cf9c65de462655ddc6c3780a67581729baf1 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -156,12 +156,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,

Powered by Google App Engine
This is Rietveld 408576698