Index: src/codec/SkGifCodec.cpp |
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp |
index a938f5fc48fac46ece1f929597ae5844675d3917..bce110a0ecaa46b18fd6ba4426593e25f03aa07c 100644 |
--- a/src/codec/SkGifCodec.cpp |
+++ b/src/codec/SkGifCodec.cpp |
@@ -13,6 +13,14 @@ |
#include "SkSwizzler.h" |
#include "SkUtils.h" |
+#include "gif_lib.h" |
+ |
+#if (GIFLIB_MAJOR * 1000 + GIFLIB_MINOR) < 5001 |
+ bool SkGifCodec::IsGif(const void*, size_t) { return false; } |
+ SkCodec* SkGifCodec::NewFromStream(SkStream* s) { delete s; return nullptr; } |
+ |
+#else |
+ |
/* |
* Checks the start of the stream to see if the image is a gif |
*/ |
@@ -586,3 +594,5 @@ int SkGifCodec::onOutputScanline(int inputScanline) const { |
} |
return inputScanline; |
} |
+ |
+#endif |