Index: src/images/SkImageDecoder_libpng.cpp |
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp |
index 2dead5872987fcc2ec0fb0ad2b4bd976670734de..6acbf29d8cd89469b4d76b89090d1f1237d19dcb 100644 |
--- a/src/images/SkImageDecoder_libpng.cpp |
+++ b/src/images/SkImageDecoder_libpng.cpp |
@@ -128,7 +128,9 @@ static int sk_read_user_chunk(png_structp png_ptr, png_unknown_chunkp chunk) { |
#endif |
static void sk_error_fn(png_structp png_ptr, png_const_charp msg) { |
- SkDEBUGF(("------ png error %s\n", msg)); |
+ if (!c_suppressPNGImageDecoderWarnings) { |
+ SkDEBUGF(("------ png error %s\n", msg)); |
+ } |
longjmp(png_jmpbuf(png_ptr), 1); |
} |