diff options
Diffstat (limited to 'src/effects/SkLightingImageFilter.cpp')
-rw-r--r-- | src/effects/SkLightingImageFilter.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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()); } |