Index: src/codec/SkCodec_libgif.cpp |
diff --git a/src/codec/SkCodec_libgif.cpp b/src/codec/SkCodec_libgif.cpp |
index fa267e83e9896f3685b7cdd3ef714e84209c87da..c18e06ddd1996918753c8c577cc12cb52af6e016 100644 |
--- a/src/codec/SkCodec_libgif.cpp |
+++ b/src/codec/SkCodec_libgif.cpp |
@@ -210,30 +210,6 @@ SkGifCodec::SkGifCodec(const SkImageInfo& srcInfo, SkStream* stream, |
, fGif(gif) |
{} |
-/* |
- * Checks if the conversion between the input image and the requested output |
- * image has been implemented |
- */ |
-static bool conversion_possible(const SkImageInfo& dst, |
- const SkImageInfo& src) { |
- // Ensure that the profile type is unchanged |
- if (dst.profileType() != src.profileType()) { |
- return false; |
- } |
- |
- // Check for supported color and alpha types |
- switch (dst.colorType()) { |
- case kN32_SkColorType: |
- return kPremul_SkAlphaType == dst.alphaType() || |
- kUnpremul_SkAlphaType == dst.alphaType(); |
- case kIndex_8_SkColorType: |
- return kPremul_SkAlphaType == dst.alphaType() || |
- kUnpremul_SkAlphaType == dst.alphaType(); |
- default: |
- return false; |
- } |
-} |
- |
bool SkGifCodec::onRewind() { |
GifFileType* gifOut = NULL; |
if (!ReadHeader(this->stream(), NULL, &gifOut)) { |