Bug 1424747 - Call eglDestroyStreamKHR during deleting EGLStreamKHR r=jgilbert
authorsotaro <sotaro.ikeda.g@gmail.com>
Wed, 10 Jan 2018 14:11:03 +0900
changeset 450271 f46dc31cb321ce6b05f688317570c4c17384370f
parent 450270 f7567b2adc03742f5a0d9e35291d80f3e5d1d0a5
child 450272 c86291179173e944c74e6f681fee8e7c33cf85e4
push id8527
push userCallek@gmail.com
push dateThu, 11 Jan 2018 21:05:50 +0000
treeherdermozilla-beta@95342d212a7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1424747
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1424747 - Call eglDestroyStreamKHR during deleting EGLStreamKHR r=jgilbert
gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp
--- a/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp
+++ b/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp
@@ -204,17 +204,17 @@ RenderDXGITextureHostOGL::DeleteTextureH
   }
 
   const auto& egl = &gl::sEGLLibrary;
   if (mSurface) {
     egl->fDestroySurface(egl->Display(), mSurface);
     mSurface = 0;
   }
   if (mStream) {
-    egl->fStreamConsumerReleaseKHR(egl->Display(), mStream);
+    egl->fDestroyStreamKHR(egl->Display(), mStream);
     mStream = 0;
   }
 
   mTexture = nullptr;
   mKeyedMutex = nullptr;
 }
 
 GLuint
@@ -412,16 +412,16 @@ RenderDXGIYCbCrTextureHostOGL::DeleteTex
     mKeyedMutexs[i] = nullptr;
 
     const auto& egl = &gl::sEGLLibrary;
     if (mSurfaces[i]) {
       egl->fDestroySurface(egl->Display(), mSurfaces[i]);
       mSurfaces[i] = 0;
     }
     if (mStreams[i]) {
-      egl->fStreamConsumerReleaseKHR(egl->Display(), mStreams[i]);
+      egl->fDestroyStreamKHR(egl->Display(), mStreams[i]);
       mStreams[i] = 0;
     }
   }
 }
 
 } // namespace wr
 } // namespace mozilla