Silence another PNG print statement

It can still be turned on by using setting
c_suppressPNGImageDecoderWarnings to true.

Review URL: https://codereview.chromium.org/1512293003
This commit is contained in:
scroggo 2015-12-10 08:54:36 -08:00 committed by Commit bot
parent 201efb5ae0
commit 04a0d3f00e

View File

@ -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);
}