Bug 1260351 - Image: Enable ConvolveVertically/Horizontally in LS3 MMI. r=tnikkel

---
 image/Downscaler.cpp      | 5 +++--
 image/DownscalingFilter.h | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
This commit is contained in:
Heiher 2016-04-13 21:40:33 +08:00
Родитель 110e0801b8
Коммит 0dce9cb2f1
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -11,6 +11,7 @@
#include "gfxPrefs.h"
#include "image_operations.h"
#include "mozilla/SSE.h"
#include "mozilla/mips.h"
#include "convolver.h"
#include "skia/include/core/SkTypes.h"
@ -228,7 +229,7 @@ Downscaler::CommitRow()
if (mCurrentInLine == inLineToRead) {
skia::ConvolveHorizontally(mRowBuffer.get(), *mXFilter,
mWindow[mLinesInBuffer++], mHasAlpha,
supports_sse2());
supports_sse2() || supports_mmi());
}
MOZ_ASSERT(mCurrentOutLine < mTargetSize.height,
@ -316,7 +317,7 @@ Downscaler::DownscaleInputLine()
&mOutputBuffer[currentOutLine * mTargetSize.width * sizeof(uint32_t)];
skia::ConvolveVertically(static_cast<const FilterValue*>(filterValues),
filterLength, mWindow.get(), mXFilter->num_values(),
outputLine, mHasAlpha, supports_sse2());
outputLine, mHasAlpha, supports_sse2() || supports_mmi());
mCurrentOutLine += 1;

Просмотреть файл

@ -23,6 +23,7 @@
#include "mozilla/Maybe.h"
#include "mozilla/SSE.h"
#include "mozilla/mips.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/gfx/2D.h"
#include "gfxPrefs.h"
@ -236,7 +237,7 @@ public:
if (mInputRow == inputRowToRead) {
skia::ConvolveHorizontally(mRowBuffer.get(), *mXFilter,
mWindow[mRowsInWindow++], mHasAlpha,
supports_sse2());
supports_sse2() || supports_mmi());
}
MOZ_ASSERT(mOutputRow < mNext.InputSize().height,
@ -311,7 +312,7 @@ private:
skia::ConvolveVertically(static_cast<const FilterValue*>(filterValues),
filterLength, mWindow.get(), mXFilter->num_values(),
reinterpret_cast<uint8_t*>(aRow), mHasAlpha,
supports_sse2());
supports_sse2() || supports_mmi());
return Some(WriteState::NEED_MORE_DATA);
});