Backed out changeset 571c01c5f84b (bug 1511604) for causing mochitest failures CLOSED TREE

This commit is contained in:
Noemi Erli 2018-12-15 12:58:28 +02:00
Родитель 48ad5643ae
Коммит 7298e5f303
1 изменённых файлов: 0 добавлений и 15 удалений

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

@ -3,9 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/EndianUtils.h"
#include "gfx2DGlue.h"
#include "mozilla/gfx/Swizzle.h"
#include "YCbCrUtils.h"
#include "yuv_convert.h"
@ -238,13 +236,6 @@ ConvertYCbCrToRGB(const layers::PlanarYCbCrData& aData,
yuvtype,
srcData.mYUVColorSpace);
}
#ifdef MOZ_BIG_ENDIAN
// libyuv makes endian-correct result, which needs to be swapped to BGRX
if (aDestFormat != SurfaceFormat::R5G6B5_UINT16)
gfx::SwizzleData(aDestBuffer, aStride, gfx::SurfaceFormat::X8R8G8B8,
aDestBuffer, aStride, gfx::SurfaceFormat::B8G8R8X8,
srcData.mPicSize);
#endif
}
void
@ -266,12 +257,6 @@ ConvertYCbCrAToARGB(const uint8_t* aSrcY,
aSrcStrideYA,
aSrcStrideUV,
aDstStrideARGB);
#ifdef MOZ_BIG_ENDIAN
// libyuv makes endian-correct result, which needs to be swapped to BGRA
gfx::SwizzleData(aDstARGB, aDstStrideARGB, gfx::SurfaceFormat::A8R8G8B8,
aDstARGB, aDstStrideARGB, gfx::SurfaceFormat::B8G8R8A8,
IntSize(aWidth, aHeight));
#endif
}
} // namespace gfx