Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: src/images/SkMovie_gif.cpp

Issue 860853003: Upstream support for giflib >= 5.1. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 98 Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/images/SkImageDecoder_libgif.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/images/SkMovie_gif.cpp
diff --git a/src/images/SkMovie_gif.cpp b/src/images/SkMovie_gif.cpp
index 3810db566275feb7ed777f02a7e028055d9a8f4f..40e5520def6ef0d23d95b06b60798b1be68a7395 100644
--- a/src/images/SkMovie_gif.cpp
+++ b/src/images/SkMovie_gif.cpp
@@ -16,6 +16,10 @@
#include "gif_lib.h"
+#if GIFLIB_MAJOR < 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0)
+#define DGifCloseFile(a, b) DGifCloseFile(a)
+#endif
+
class SkGIFMovie : public SkMovie {
public:
SkGIFMovie(SkStream* stream);
@@ -50,7 +54,7 @@ SkGIFMovie::SkGIFMovie(SkStream* stream)
if (DGifSlurp(fGIF) != GIF_OK)
{
- DGifCloseFile(fGIF);
+ DGifCloseFile(fGIF, NULL);
fGIF = NULL;
}
fCurrIndex = -1;
@@ -60,7 +64,7 @@ SkGIFMovie::SkGIFMovie(SkStream* stream)
SkGIFMovie::~SkGIFMovie()
{
if (fGIF)
- DGifCloseFile(fGIF);
+ DGifCloseFile(fGIF, NULL);
}
static SkMSec savedimage_duration(const SavedImage* image)
« no previous file with comments | « src/images/SkImageDecoder_libgif.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698