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

Unified Diff: src/codec/SkPngCodec.cpp

Issue 1640933004: SkPngFilters: guard with libpng >= 1.5.7 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: note Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkPngCodec.cpp
diff --git a/src/codec/SkPngCodec.cpp b/src/codec/SkPngCodec.cpp
index 9691f12d4d6b210245d1a0992b5853a20b5fb3cc..155cbacf4db0997bd9a4fcd94ad0b95013b3d220 100644
--- a/src/codec/SkPngCodec.cpp
+++ b/src/codec/SkPngCodec.cpp
@@ -17,7 +17,8 @@
#include "SkSwizzler.h"
#include "SkTemplates.h"
-#if defined(__SSE2__)
+// png_struct::read_filter[] was added in libpng 1.5.7.
+#if defined(__SSE2__) && PNG_LIBPNG_VER >= 10507
#include "pngstruct.h"
extern "C" void sk_png_init_filter_functions_sse2(png_structp png, unsigned int bpp) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698