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

Unified Diff: src/codec/SkJpegDecoderMgr.cpp

Issue 1427523007: Reduce messages from libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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/SkJpegDecoderMgr.cpp
diff --git a/src/codec/SkJpegDecoderMgr.cpp b/src/codec/SkJpegDecoderMgr.cpp
index 9e79dda9585f0cfd62f9051d262b690537b7b5d6..cc44f3c42117cd1b285ee5651180f47bd2b602df 100644
--- a/src/codec/SkJpegDecoderMgr.cpp
+++ b/src/codec/SkJpegDecoderMgr.cpp
@@ -18,11 +18,8 @@ static void print_message(const j_common_ptr info, const char caller[]) {
}
/*
- * Reporting functions for libjpeg
+ * Reporting function for error and warning messages.
*/
-static void emit_message(j_common_ptr info, int) {
msarett 2015/11/10 15:26:35 The default implementation of emit_message is much
- print_message(info, "emit_message");
-}
static void output_message(j_common_ptr info) {
msarett 2015/11/10 15:26:35 By overriding output_message, we can use SkCodecPr
print_message(info, "output_message");
}
@@ -59,7 +56,6 @@ void JpegDecoderMgr::init() {
jpeg_create_decompress(&fDInfo);
fInit = true;
fDInfo.src = &fSrcMgr;
- fDInfo.err->emit_message = &emit_message;
fDInfo.err->output_message = &output_message;
}
« 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