Bug 1330672 - Fix for the YCbCr blit origin. r=jgilbert a=jcristau
authorkvark <kvark@mozilla.com>
Wed, 18 Jan 2017 20:10:00 -0500
changeset 378225 65e5f8c2d8160bb7a078726ccad358f647418959
parent 378224 5039612d015c2a5c2473237bc880a99835cea710
child 378226 4c3463d88059615faf6cc4ff55b792d699d79c1c
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, jcristau
bugs1330672
milestone53.0a2
Bug 1330672 - Fix for the YCbCr blit origin. r=jgilbert a=jcristau
gfx/gl/GLBlitHelper.cpp
--- a/gfx/gl/GLBlitHelper.cpp
+++ b/gfx/gl/GLBlitHelper.cpp
@@ -826,25 +826,24 @@ GLBlitHelper::BlitImageToFramebuffer(lay
     ScopedGLDrawState autoStates(mGL);
 
     BlitType type;
     OriginPos srcOrigin;
 
     switch (srcImage->GetFormat()) {
     case ImageFormat::PLANAR_YCBCR:
         type = ConvertPlanarYCbCr;
-        srcOrigin = OriginPos::TopLeft;
+        srcOrigin = OriginPos::BottomLeft;
         break;
 
 #ifdef MOZ_WIDGET_ANDROID
     case ImageFormat::SURFACE_TEXTURE:
         type = ConvertSurfaceTexture;
         srcOrigin = srcImage->AsSurfaceTextureImage()->GetOriginPos();
         break;
-
     case ImageFormat::EGLIMAGE:
         type = ConvertEGLImage;
         srcOrigin = srcImage->AsEGLImageImage()->GetOriginPos();
         break;
 #endif
 #ifdef XP_MACOSX
     case ImageFormat::MAC_IOSURFACE:
         type = ConvertMacIOSurfaceImage;