aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleFuzz.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleFuzz.cpp')
-rw-r--r--samplecode/SampleFuzz.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/samplecode/SampleFuzz.cpp b/samplecode/SampleFuzz.cpp
index 76420f026a..c7d05782e3 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;