Chromium Code Reviews

Unified Diff: Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp

Issue 339143002: Switched to JDCT_ISLOW for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« 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: Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
diff --git a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
index 5da5d357157ecd6047d9358012230ff7a20178f6..ea4385b33397d8665a40e27c86261de37b679f4c 100644
--- a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
@@ -75,13 +75,17 @@ inline bool colorSpaceHasAlpha(J_COLOR_SPACE) { return false; }
#endif
#if USE(LOW_QUALITY_IMAGE_NO_JPEG_DITHERING)
-inline J_DCT_METHOD dctMethod() { return JDCT_IFAST; }
inline J_DITHER_MODE ditherMode() { return JDITHER_NONE; }
#else
-inline J_DCT_METHOD dctMethod() { return JDCT_ISLOW; }
inline J_DITHER_MODE ditherMode() { return JDITHER_FS; }
#endif
+#if USE(LOW_QUALITY_IMAGE_FAST_JPEG_DCT)
Peter Kasting 2014/06/17 17:49:04 If nobody uses this, I'd scrap it and add a commen
Ken Russell (switch to Gerrit) 2014/06/17 21:28:35 Agree with this comment.
+inline J_DCT_METHOD dctMethod() { return JDCT_IFAST; }
+#else
+inline J_DCT_METHOD dctMethod() { return JDCT_ISLOW; }
+#endif
+
#if USE(LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING)
inline bool doFancyUpsampling() { return false; }
#else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine