Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 18806c995022c2dca151367ef16accec8490ae31..d5fbc97a17397039d60f01560a1c3674eb208dff 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -582,10 +582,9 @@ static SkImageFilter* make_image_filter(bool canBeNull) { |
filter = SkDownSampleImageFilter::Create(make_scalar()); |
break; |
case XFERMODE: |
- { |
- SkAutoTUnref<SkXfermode> mode(SkXfermode::Create(make_xfermode())); |
- filter = SkXfermodeImageFilter::Create(mode, make_image_filter(), make_image_filter()); |
- } |
+ filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), |
+ make_image_filter(), make_image_filter(), |
+ nullptr).release(); |
break; |
case OFFSET: |
filter = SkOffsetImageFilter::Create(make_scalar(), make_scalar(), make_image_filter()); |