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

Unified Diff: samplecode/SampleFuzz.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 | « samplecode/SampleFilterFuzz.cpp ('k') | samplecode/SampleHairModes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleFuzz.cpp
diff --git a/samplecode/SampleFuzz.cpp b/samplecode/SampleFuzz.cpp
index 76420f026a6e53ed81cc0dc1d95cedc62c2b5e21..c7d05782e32504c96e371065763b4757407caeec 100644
--- a/samplecode/SampleFuzz.cpp
+++ b/samplecode/SampleFuzz.cpp
@@ -153,15 +153,15 @@ static void do_fuzz(SkCanvas* canvas) {
break;
case 2: {
- SkXfermode::Mode mode;
+ SkBlendMode mode;
switch (R(3)) {
- case 0: mode = SkXfermode::kSrc_Mode; break;
- case 1: mode = SkXfermode::kXor_Mode; break;
+ case 0: mode = SkBlendMode::kSrc; break;
+ case 1: mode = SkBlendMode::kXor; break;
case 2:
default: // silence warning
- mode = SkXfermode::kSrcOver_Mode; break;
+ mode = SkBlendMode::kSrcOver; break;
}
- paint.setXfermodeMode(mode);
+ paint.setBlendMode(mode);
}
break;
« no previous file with comments | « samplecode/SampleFilterFuzz.cpp ('k') | samplecode/SampleHairModes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698