diff options
author | 2013-02-01 19:05:48 +0000 | |
---|---|---|
committer | 2013-02-01 19:05:48 +0000 | |
commit | bb89613380332065a2abf71b8b229eabcf2c0be8 (patch) | |
tree | 55f8ada5cd304e2e2774ceb0c670feccb90f6e3d /src/images/SkMovie_gif.cpp | |
parent | 4d263406e3d89853c65b44b7d0646ecf564f8371 (diff) |
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
Diffstat (limited to 'src/images/SkMovie_gif.cpp')
-rw-r--r-- | src/images/SkMovie_gif.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |