| Index: src/images/SkImageDecoder_pkm.cpp
|
| diff --git a/src/images/SkImageDecoder_pkm.cpp b/src/images/SkImageDecoder_pkm.cpp
|
| index 79da8da51a1d80a059cf17aa0bcdb491c7ceba23..d555c6afccccddc0c619978bc9c2ce053a212cbc 100644
|
| --- a/src/images/SkImageDecoder_pkm.cpp
|
| +++ b/src/images/SkImageDecoder_pkm.cpp
|
| @@ -46,10 +46,12 @@ bool SkPKMImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) {
|
| const unsigned short width = etc1_pkm_get_width(buf);
|
| const unsigned short height = etc1_pkm_get_height(buf);
|
|
|
| +#ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CHOOSER
|
| // should we allow the Chooser (if present) to pick a config for us???
|
| if (!this->chooseFromOneChoice(kN32_SkColorType, width, height)) {
|
| return false;
|
| }
|
| +#endif
|
|
|
| // Setup the sampler...
|
| SkScaledBitmapSampler sampler(width, height, this->getSampleSize());
|
|
|