diff options
-rw-r--r-- | src/core/SkBlurImageFilter.cpp | 4 | ||||
-rw-r--r-- | src/effects/SkLightingImageFilter.cpp | 8 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/core/SkBlurImageFilter.cpp b/src/core/SkBlurImageFilter.cpp index 556508ee27..e81a11eba0 100644 --- a/src/core/SkBlurImageFilter.cpp +++ b/src/core/SkBlurImageFilter.cpp @@ -122,10 +122,6 @@ sk_sp<SkFlattenable> SkBlurImageFilterImpl::CreateProc(SkReadBuffer& buffer) { static_assert(SkBlurImageFilter::kLast_TileMode == 2, "CreateProc"); - if (!buffer.validate(safe)) { - return nullptr; - } - return SkBlurImageFilter::Make( sigmaX, sigmaY, common.getInput(0), &common.cropRect(), tileMode); } diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp index 5008aa5d31..f861a5b9ac 100644 --- a/src/effects/SkLightingImageFilter.cpp +++ b/src/effects/SkLightingImageFilter.cpp @@ -1288,10 +1288,6 @@ sk_sp<SkFlattenable> SkDiffuseLightingImageFilter::CreateProc(SkReadBuffer& buff SkScalar surfaceScale = buffer.readScalar(); SkScalar kd = buffer.readScalar(); - if (!buffer.isValid()) { - return nullptr; - } - return Make(std::move(light), surfaceScale, kd, common.getInput(0), &common.cropRect()); } @@ -1445,10 +1441,6 @@ sk_sp<SkFlattenable> SkSpecularLightingImageFilter::CreateProc(SkReadBuffer& buf SkScalar ks = buffer.readScalar(); SkScalar shine = buffer.readScalar(); - if (!buffer.isValid()) { - return nullptr; - } - return Make(std::move(light), surfaceScale, ks, shine, common.getInput(0), &common.cropRect()); } |