Index: src/codec/SkGifCodec.cpp |
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp |
index 1e6e300a9233ec8e24d45c392b877b291154d565..dcc25b8dfd83986724deec6ae9d86b141a46db24 100644 |
--- a/src/codec/SkGifCodec.cpp |
+++ b/src/codec/SkGifCodec.cpp |
@@ -450,8 +450,9 @@ |
SkCodec::Result SkGifCodec::prepareToDecode(const SkImageInfo& dstInfo, SkPMColor* inputColorPtr, |
int* inputColorCount, const Options& opts) { |
// Check for valid input parameters |
- if (!conversion_possible_ignore_color_space(dstInfo, this->getInfo())) { |
- return gif_error("Cannot convert input type to output type.\n", kInvalidConversion); |
+ if (!conversion_possible(dstInfo, this->getInfo())) { |
+ return gif_error("Cannot convert input type to output type.\n", |
+ kInvalidConversion); |
} |
// Initialize color table and copy to the client if necessary |