Index: include/effects/SkBlurImageFilter.h |
diff --git a/include/effects/SkBlurImageFilter.h b/include/effects/SkBlurImageFilter.h |
index 607e76de513e4fb8c92bf04921d5d836b275f6cc..9bfa19b8758c6785ff23ef0c7552ceb04782dacd 100644 |
--- a/include/effects/SkBlurImageFilter.h |
+++ b/include/effects/SkBlurImageFilter.h |
@@ -13,13 +13,9 @@ |
class SK_API SkBlurImageFilter : public SkImageFilter { |
public: |
- static sk_sp<SkImageFilter> Make(SkScalar sigmaX, SkScalar sigmaY, sk_sp<SkImageFilter> input, |
- const CropRect* cropRect = nullptr) { |
- if (0 == sigmaX && 0 == sigmaY && nullptr == cropRect) { |
- return input; |
- } |
- return sk_sp<SkImageFilter>(new SkBlurImageFilter(sigmaX, sigmaY, input, cropRect)); |
- } |
+ static sk_sp<SkImageFilter> Make(SkScalar sigmaX, SkScalar sigmaY, |
+ sk_sp<SkImageFilter> input, |
+ const CropRect* cropRect = nullptr); |
SkRect computeFastBounds(const SkRect&) const override; |