Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index a1e8c2df7bdd814b6457d28d01145f098c58d94f..900ae7b7bdbcb7c3648fa487472aa88bc18ac186 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -605,12 +605,9 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) { |
nullptr); |
break; |
} |
- case OFFSET: { |
- sk_sp<SkImageFilter> subFilter(make_image_filter()); |
- filter = sk_sp<SkImageFilter>(SkOffsetImageFilter::Create(make_scalar(), make_scalar(), |
- subFilter.get())); |
+ case OFFSET: |
+ filter = SkOffsetImageFilter::Make(make_scalar(), make_scalar(), make_image_filter()); |
break; |
- } |
case MATRIX: { |
sk_sp<SkImageFilter> subFilter(make_image_filter()); |
filter = sk_sp<SkImageFilter>(SkImageFilter::CreateMatrixFilter(make_matrix(), |