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

Unified Diff: gm/picture.cpp

Issue 2396953002: Revert[8] "replace SkXfermode obj with SkBlendMode enum in paints" (Closed)
Patch Set: add tmp virtual to unroll legacy arithmodes Created 4 years, 2 months 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 | « gm/modecolorfilters.cpp ('k') | gm/plus.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/picture.cpp
diff --git a/gm/picture.cpp b/gm/picture.cpp
index 1ea8adaa7601dd583403927eea2847638f146671..72d4159aa97b866a8747e6cc497b04777375f5a1 100644
--- a/gm/picture.cpp
+++ b/gm/picture.cpp
@@ -29,7 +29,7 @@ static sk_sp<SkPicture> make_picture() {
canvas->drawPath(path, paint);
paint.setColor(0x80FFFFFF);
- paint.setXfermodeMode(SkXfermode::kPlus_Mode);
+ paint.setBlendMode(SkBlendMode::kPlus);
canvas->drawRect(SkRect::MakeXYWH(25, 25, 50, 50), paint);
return rec.finishRecordingAsPicture();
« no previous file with comments | « gm/modecolorfilters.cpp ('k') | gm/plus.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698