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

Unified Diff: src/images/SkImageDecoder_libpng.cpp

Issue 1512293003: Silence another PNG print statement (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reverse bool to the desired value Created 5 years 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/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);
}
« 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