| Index: src/images/SkImageDecoder_libpng.cpp
|
| diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp
|
| index 70cc1b9f759ea59d8947c910d8bbf54b21f6805e..9c911e29fcf2fc0692586006063c8828f05813c7 100644
|
| --- a/src/images/SkImageDecoder_libpng.cpp
|
| +++ b/src/images/SkImageDecoder_libpng.cpp
|
| @@ -607,9 +607,11 @@ bool SkPNGImageDecoder::getBitmapConfig(png_structp png_ptr, png_infop info_ptr,
|
| }
|
| }
|
|
|
| +#ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CHOOSER
|
| if (!this->chooseFromOneChoice(*colorTypep, origWidth, origHeight)) {
|
| return false;
|
| }
|
| +#endif
|
|
|
| // If the image has alpha and the decoder wants unpremultiplied
|
| // colors, the only supported config is 8888.
|
|
|