aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2015-04-01 10:33:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-01 10:33:55 -0700
commit2469c999518e7b0063d35e9e2eb074a0477c21ac (patch)
treeae5382d53caae360fe836ee859e5f9a17cb6bf34 /src/images
parent65a8e12287f40b1f3c3623397656f813b942b36f (diff)
Enable both static and dynamically linked libpng
All platforms except android are configured to use the statically linked copy of libpng. Android uses the system provided dynamic copy for SkImageDecoder and the static copy for SkCodec. The exception being android framework builds that currently use the dynamic copy everywhere. This CL also enables NEON optimizations for libpng. Review URL: https://codereview.chromium.org/1032253003
Diffstat (limited to 'src/images')
-rw-r--r--src/images/SkImageDecoder_libpng.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp
index 4101b3e4ec..44aa8e2e64 100644
--- a/src/images/SkImageDecoder_libpng.cpp
+++ b/src/images/SkImageDecoder_libpng.cpp
@@ -17,9 +17,12 @@
#include "SkTemplates.h"
#include "SkUtils.h"
#include "transform_scanline.h"
-extern "C" {
+
+#ifdef SKIA_PNG_PREFIXED
+ // this must proceed png.h
+ #include "pngprefix.h"
+#endif
#include "png.h"
-}
/* These were dropped in libpng >= 1.4 */
#ifndef png_infopp_NULL