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:
parent
201efb5ae0
commit
04a0d3f00e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user