aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-01-22 10:32:25 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-22 10:32:25 -0800
commit75de4f827fcc92ec129ba872924f6e81c55aa8f0 (patch)
tree69e30e8b407ed4f41d38cdb20c164a3580af1218 /src/images
parent6d7e47a8e0c8fd80ad33f659b01ec84f9e93a94b (diff)
Put close_gif() in an anonymous namespace.
Not a big deal, but matches the intention of it being a file-scoped function better. This mirrors a recent google3 change for clients who don't use C++11. BUG=skia: Review URL: https://codereview.chromium.org/865243002
Diffstat (limited to 'src/images')
-rw-r--r--src/images/SkImageDecoder_libgif.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/images/SkImageDecoder_libgif.cpp b/src/images/SkImageDecoder_libgif.cpp
index fa12301e99..c86daf3ea3 100644
--- a/src/images/SkImageDecoder_libgif.cpp
+++ b/src/images/SkImageDecoder_libgif.cpp
@@ -229,7 +229,8 @@ static void sanitize_indexed_bitmap(SkBitmap* bm) {
}
}
-int close_gif(GifFileType*); // This function is a template argument, so can't be static.
+namespace {
+// This function is a template argument, so can't be static.
int close_gif(GifFileType* gif) {
#if GIFLIB_MAJOR < 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0)
return DGifCloseFile(gif);
@@ -237,6 +238,7 @@ int close_gif(GifFileType* gif) {
return DGifCloseFile(gif, NULL);
#endif
}
+}//namespace
SkImageDecoder::Result SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) {
#if GIFLIB_MAJOR < 5