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 |