diff --git a/src/codec/SkWebpAdapterCodec.cpp b/src/codec/SkWebpAdapterCodec.cpp index 93400d0015..18e1a54911 100644 --- a/src/codec/SkWebpAdapterCodec.cpp +++ b/src/codec/SkWebpAdapterCodec.cpp @@ -24,19 +24,6 @@ bool SkWebpAdapterCodec::onGetSupportedSubset(SkIRect* desiredSubset) const { SkCodec::Result SkWebpAdapterCodec::onGetAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const AndroidOptions& options) { - // SkWebpCodec will support pretty much any dimensions that we provide, but we want - // to be stricter about the type of scaling that we allow, so we will add an extra - // check here. - SkISize supportedSize; - if (!options.fSubset) { - supportedSize = this->onGetSampledDimensions(options.fSampleSize); - } else { - supportedSize = this->getSampledSubsetDimensions(options.fSampleSize, *options.fSubset); - } - if (supportedSize != info.dimensions()) { - return SkCodec::kInvalidParameters; - } - SkCodec::Options codecOptions; codecOptions.fZeroInitialized = options.fZeroInitialized; codecOptions.fSubset = options.fSubset;