Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 5f06731ae5203128d46f7f8cbb3a0d65b0c0d9af..12b6a8af9993976ae7b918c0ff53adea878ffd80 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -709,17 +709,13 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) { |
} |
break; |
} |
- case DISPLACE: { |
- sk_sp<SkImageFilter> subFilter1(make_image_filter(false)); |
- sk_sp<SkImageFilter> subFilter2(make_image_filter()); |
- |
- filter = sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create(make_channel_selector_type(), |
- make_channel_selector_type(), |
- make_scalar(), |
- subFilter1.get(), |
- subFilter2.get())); |
+ case DISPLACE: |
+ filter = SkDisplacementMapEffect::Make(make_channel_selector_type(), |
+ make_channel_selector_type(), |
+ make_scalar(), |
+ make_image_filter(false), |
+ make_image_filter()); |
break; |
- } |
case TILE: { |
sk_sp<SkImageFilter> subFilter(make_image_filter(false)); |