diff options
Diffstat (limited to 'src/images/SkImageDecoder_libgif.cpp')
-rw-r--r-- | src/images/SkImageDecoder_libgif.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/images/SkImageDecoder_libgif.cpp b/src/images/SkImageDecoder_libgif.cpp index bbcd223169..7b6a4741df 100644 --- a/src/images/SkImageDecoder_libgif.cpp +++ b/src/images/SkImageDecoder_libgif.cpp @@ -309,10 +309,12 @@ bool SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) { imageTop = 0; } +#ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CHOOSER // FIXME: We could give the caller a choice of images or configs. if (!this->chooseFromOneChoice(kIndex_8_SkColorType, width, height)) { return error_return(*bm, "chooseFromOneChoice"); } +#endif SkScaledBitmapSampler sampler(width, height, this->getSampleSize()); |