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

Unified Diff: src/images/SkJpegUtility.cpp

Issue 1180983002: Switch SkJpegCode to libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Adding turbo to DEPS Created 5 years, 6 months 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
Index: src/images/SkJpegUtility.cpp
diff --git a/src/images/SkJpegUtility.cpp b/src/images/SkJpegUtility.cpp
index 937c5ec6f6f343f44b7a1fe06b9df7d1846fab91..d94d2e0548be90bc66dcf6cad59e05c5204be1fe 100644
--- a/src/images/SkJpegUtility.cpp
+++ b/src/images/SkJpegUtility.cpp
@@ -102,7 +102,7 @@ skjpeg_source_mgr::skjpeg_source_mgr(SkStream* stream, SkImageDecoder* decoder)
init_source = sk_init_source;
fill_input_buffer = sk_fill_input_buffer;
skip_input_data = sk_skip_input_data;
- resync_to_restart = jpeg_resync_to_restart;
+ resync_to_restart = jResyncRestart;
term_source = sk_term_source;
#ifdef SK_BUILD_FOR_ANDROID
seek_input_data = sk_seek_input_data;
@@ -160,7 +160,7 @@ void skjpeg_error_exit(j_common_ptr cinfo) {
(*error->output_message) (cinfo);
/* Let the memory manager delete any temp files before we die */
- jpeg_destroy(cinfo);
+ jDestroy(cinfo);
longjmp(error->fJmpBuf, -1);
}

Powered by Google App Engine
This is Rietveld 408576698