зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1330672 - Fix for the YCbCr blit origin. r=jgilbert
This commit is contained in:
Родитель
3938b1321e
Коммит
050200c2b8
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче