Index: src/images/SkImageDecoder_libjpeg.cpp |
diff --git a/src/images/SkImageDecoder_libjpeg.cpp b/src/images/SkImageDecoder_libjpeg.cpp |
index b3dde476c8d3ca9cec8797724663e135f80b43a0..9920bacc45302e6c5ee3540cc62e3c0262d3683a 100644 |
--- a/src/images/SkImageDecoder_libjpeg.cpp |
+++ b/src/images/SkImageDecoder_libjpeg.cpp |
@@ -965,7 +965,9 @@ protected: |
jpeg_set_defaults(&cinfo); |
jpeg_set_quality(&cinfo, quality, TRUE /* limit to baseline-JPEG values */); |
+#ifdef DCT_IFAST_SUPPORTED |
cinfo.dct_method = JDCT_IFAST; |
+#endif |
jpeg_start_compress(&cinfo, TRUE); |