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

Unified Diff: gm/dstreadshuffle.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/drawatlascolor.cpp ('k') | gm/gamma.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/dstreadshuffle.cpp
diff --git a/gm/dstreadshuffle.cpp b/gm/dstreadshuffle.cpp
index 47c70563b5388f23956f53258e8689d29f791b0e..72a68b1d9dcf72b3befe6e2d2e533778766d8514 100644
--- a/gm/dstreadshuffle.cpp
+++ b/gm/dstreadshuffle.cpp
@@ -159,8 +159,8 @@ protected:
p.setColor(color);
// In order to get some batching on the GPU backend we do 2 src over for
// each xfer mode which requires a dst read
- p.setXfermodeMode(r % 3 == 0 ? SkXfermode::kLighten_Mode :
- SkXfermode::kSrcOver_Mode);
+ p.setBlendMode(r % 3 == 0 ? SkBlendMode::kLighten :
+ SkBlendMode::kSrcOver);
SetStyle(&p, style, width);
canvas->save();
canvas->translate(x, y);
« no previous file with comments | « gm/drawatlascolor.cpp ('k') | gm/gamma.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698