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