Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 2be6c318891c4239673e8621a01749770660fad0..31cd661699dbee1bb1df46d8d7f1a977c44d34fe 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -588,15 +588,12 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) { |
case DOWN_SAMPLE: |
filter = sk_sp<SkImageFilter>(SkDownSampleImageFilter::Create(make_scalar())); |
break; |
- case XFERMODE: { |
- sk_sp<SkImageFilter> subFilter1(make_image_filter()); |
- sk_sp<SkImageFilter> subFilter2(make_image_filter()); |
+ case XFERMODE: |
filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), |
- subFilter1.get(), |
- subFilter2.get(), |
+ make_image_filter(), |
+ make_image_filter(), |
nullptr); |
break; |
- } |
case OFFSET: |
filter = SkOffsetImageFilter::Make(make_scalar(), make_scalar(), make_image_filter()); |
break; |