From bb89613380332065a2abf71b8b229eabcf2c0be8 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Fri, 1 Feb 2013 19:05:48 +0000 Subject: landing https://codereview.appspot.com/7225077/ -- tweak for GIF 5.x api git-svn-id: http://skia.googlecode.com/svn/trunk@7523 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/images/SkMovie_gif.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/images/SkMovie_gif.cpp') diff --git a/src/images/SkMovie_gif.cpp b/src/images/SkMovie_gif.cpp index 9cebc0fc8b..cda152519f 100644 --- a/src/images/SkMovie_gif.cpp +++ b/src/images/SkMovie_gif.cpp @@ -40,7 +40,11 @@ static int Decode(GifFileType* fileType, GifByteType* out, int size) { SkGIFMovie::SkGIFMovie(SkStream* stream) { +#if GIFLIB_MAJOR < 5 fGIF = DGifOpen( stream, Decode ); +#else + fGIF = DGifOpen( stream, Decode, NULL ); +#endif if (NULL == fGIF) return; -- cgit v1.2.3