Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 8d2cef091d05dc9078305f6ac31163af685ad686..6413aa103f8725f44de73f8aa62d80ed3b4fc908 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -595,12 +595,15 @@ |
case DOWN_SAMPLE: |
filter = sk_sp<SkImageFilter>(SkDownSampleImageFilter::Create(make_scalar())); |
break; |
- case XFERMODE: |
+ case XFERMODE: { |
+ sk_sp<SkImageFilter> subFilter1(make_image_filter()); |
+ sk_sp<SkImageFilter> subFilter2(make_image_filter()); |
filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), |
- make_image_filter(), |
- make_image_filter(), |
+ subFilter1.get(), |
+ subFilter2.get(), |
nullptr); |
break; |
+ } |
case OFFSET: |
filter = SkOffsetImageFilter::Make(make_scalar(), make_scalar(), make_image_filter()); |
break; |