| Index: src/codec/SkWebpCodec.cpp
|
| diff --git a/src/codec/SkWebpCodec.cpp b/src/codec/SkWebpCodec.cpp
|
| index 5970baeef66e34f996967ca98f8bc728ad41f004..ccffda9276857e9549cd9fb1263577b3a9c59d68 100644
|
| --- a/src/codec/SkWebpCodec.cpp
|
| +++ b/src/codec/SkWebpCodec.cpp
|
| @@ -114,6 +114,13 @@ SkISize SkWebpCodec::onGetScaledDimensions(float desiredScale) const {
|
| return dim;
|
| }
|
|
|
| +bool SkWebpCodec::onDimensionsSupported(const SkISize& dim) {
|
| + const SkImageInfo& info = this->getInfo();
|
| + return dim.width() >= 1 && dim.width() <= info.width()
|
| + && dim.height() >= 1 && dim.height() <= info.height();
|
| +}
|
| +
|
| +
|
| static WEBP_CSP_MODE webp_decode_mode(SkColorType ct, bool premultiply) {
|
| switch (ct) {
|
| case kBGRA_8888_SkColorType:
|
|
|