Bug 1402370 _uuidof is a Microsoft specific extension while IID_* is a portable solution that will fix the MinGW build of GLBlitHelperD3D.cpp draft
authorTom Ritter <tom@mozilla.com>
Fri, 22 Sep 2017 11:10:43 -0500
changeset 669164 12ebbd5a6393872f4bf87a0b52a97010e3ee4256
parent 669163 3d030ff1b2b36e85e9abb24f50ebce668e4d86d6
child 732873 5b5e0fc32b714a111d5e6df1c4c81ad6ac585654
push id81235
push userbmo:tom@mozilla.com
push dateFri, 22 Sep 2017 16:11:08 +0000
bugs1402370
milestone58.0a1
Bug 1402370 _uuidof is a Microsoft specific extension while IID_* is a portable solution that will fix the MinGW build of GLBlitHelperD3D.cpp MozReview-Commit-ID: 1FfQRZ5e5XG
gfx/gl/GLBlitHelperD3D.cpp
--- a/gfx/gl/GLBlitHelperD3D.cpp
+++ b/gfx/gl/GLBlitHelperD3D.cpp
@@ -107,17 +107,17 @@ public:
             mSuccess &= bool(mStreams[i]);
         }
 
         if (mSuccess) {
             for (uint8_t i = 0; i < mNumPlanes; i++) {
                 MOZ_ALWAYS_TRUE( egl.fStreamConsumerAcquireKHR(display, mStreams[i]) );
 
                 auto& mutex = mMutexList[i];
-                texD3DList[i]->QueryInterface(_uuidof(IDXGIKeyedMutex),
+                texD3DList[i]->QueryInterface(IID_IDXGIKeyedMutex,
                                               (void**)getter_AddRefs(mutex));
                 if (mutex) {
                     const auto hr = mutex->AcquireSync(0, 100);
                     if (FAILED(hr)) {
                         NS_WARNING("BindAnglePlanes failed to acquire KeyedMutex.");
                         mSuccess = false;
                     }
                 }