Bug 1322746 - Explicitly reject D3D9_RGB32_TEXTURE for fast blitting. draft
authorjgilbert@mozilla.com <jgilbert@mozilla.com>
Wed, 23 Aug 2017 05:38:50 +0000
changeset 655211 c976ce175fa329552dfeadbbb379a99028fd9a7c
parent 655210 a8820c848b6f35f8ec839091eb11f9ec5ec3c9ca
child 655212 7f436abfa217dcbfce5c45ab9a2dc13b763f538d
push id76798
push userbmo:dmu@mozilla.com
push dateTue, 29 Aug 2017 18:29:40 +0000
bugs1322746
milestone57.0a1
Bug 1322746 - Explicitly reject D3D9_RGB32_TEXTURE for fast blitting. MozReview-Commit-ID: IjpTPn8OAwl
gfx/gl/GLBlitHelper.cpp
--- a/gfx/gl/GLBlitHelper.cpp
+++ b/gfx/gl/GLBlitHelper.cpp
@@ -600,16 +600,18 @@ GLBlitHelper::BlitImageToFramebuffer(lay
 #endif
 #ifdef XP_WIN
     case ImageFormat::GPU_VIDEO:
         return BlitImage(static_cast<layers::GPUVideoImage*>(srcImage), destSize,
                          destOrigin);
     case ImageFormat::D3D11_YCBCR_IMAGE:
         return BlitImage((layers::D3D11YCbCrImage*)srcImage, destSize,
                          destOrigin);
+    case ImageFormat::D3D9_RGB32_TEXTURE:
+        return false; // todo
 #endif
     default:
         gfxCriticalError() << "Unhandled srcImage->GetFormat(): "
                            << uint32_t(srcImage->GetFormat());
         return false;
     }
 }