Bug 1330672 - Fix for the YCbCr blit origin. r=jgilbert

This commit is contained in:
kvark 2017-01-18 20:10:00 -05:00
Родитель 3938b1321e
Коммит 050200c2b8
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -831,7 +831,7 @@ GLBlitHelper::BlitImageToFramebuffer(layers::Image* srcImage,
switch (srcImage->GetFormat()) {
case ImageFormat::PLANAR_YCBCR:
type = ConvertPlanarYCbCr;
srcOrigin = OriginPos::TopLeft;
srcOrigin = OriginPos::BottomLeft;
break;
#ifdef MOZ_WIDGET_ANDROID
@ -839,7 +839,6 @@ GLBlitHelper::BlitImageToFramebuffer(layers::Image* srcImage,
type = ConvertSurfaceTexture;
srcOrigin = srcImage->AsSurfaceTextureImage()->GetOriginPos();
break;
case ImageFormat::EGLIMAGE:
type = ConvertEGLImage;
srcOrigin = srcImage->AsEGLImageImage()->GetOriginPos();