Index: src/images/SkImageDecoder_libgif.cpp |
diff --git a/src/images/SkImageDecoder_libgif.cpp b/src/images/SkImageDecoder_libgif.cpp |
index bbcd22316931b5f7b1cb481d2efd23542f6aed42..7b6a4741df8756ca68b7b9061d59aa8f1cc941b3 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()); |