Bug 1322746 - Explicitly reject D3D9_RGB32_TEXTURE for fast blitting. draft
authorJeff Gilbert <jgilbert@mozilla.com>
Tue, 22 Aug 2017 18:17:03 -0700
changeset 656968 f6210354e7d01001dace68ff1e3808e86e3e5e15
parent 656967 40db0716de0116ed803f95e6218b3c2ac461d5fc
child 656969 3ccfa9e53f818c46e9bd68022f5646e381b4a717
push id77391
push userbmo:jgilbert@mozilla.com
push dateThu, 31 Aug 2017 22:47:58 +0000
bugs1322746
milestone57.0a1
Bug 1322746 - Explicitly reject D3D9_RGB32_TEXTURE for fast blitting. MozReview-Commit-ID: JA683emuAzX
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;
     }
 }