diff --git a/image/Downscaler.cpp b/image/Downscaler.cpp index 986f62158ad..d1fc0512fe9 100644 --- a/image/Downscaler.cpp +++ b/image/Downscaler.cpp @@ -10,6 +10,7 @@ #include #include "gfxPrefs.h" #include "image_operations.h" +#include "mozilla/SSE.h" #include "convolver.h" #include "skia/include/core/SkTypes.h" @@ -159,7 +160,7 @@ Downscaler::CommitRow() if (mCurrentInLine == inLineToRead) { skia::ConvolveHorizontally(mRowBuffer.get(), *mXFilter, mWindow[mLinesInBuffer++], mHasAlpha, - /* use_sse2 = */ true); + supports_sse2()); } MOZ_ASSERT(mCurrentOutLine < mTargetSize.height, @@ -226,7 +227,7 @@ Downscaler::DownscaleInputLine() &mOutputBuffer[mCurrentOutLine * mTargetSize.width * sizeof(uint32_t)]; skia::ConvolveVertically(static_cast(filterValues), filterLength, mWindow.get(), mXFilter->num_values(), - outputLine, mHasAlpha, /* use_sse2 = */ true); + outputLine, mHasAlpha, supports_sse2()); mCurrentOutLine += 1;