Unreviewed, manual rollout of r228866 causing EGL_BAD_CONTEXT errors
authorphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Feb 2018 14:34:41 +0000 (14:34 +0000)
committerphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Feb 2018 14:34:41 +0000 (14:34 +0000)
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
(WebCore::MediaPlayerPrivateGStreamerBase::ensureGstGLContext):
Create an EGL display, even in Wayland.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229022 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp

index 65cbe47..936d7c5 100644 (file)
@@ -1,3 +1,11 @@
+2018-02-26  Philippe Normand  <pnormand@igalia.com>
+
+        Unreviewed, manual rollout of r228866 causing EGL_BAD_CONTEXT errors
+
+        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
+        (WebCore::MediaPlayerPrivateGStreamerBase::ensureGstGLContext):
+        Create an EGL display, even in Wayland.
+
 2018-02-21  Sergio Villar Senin  <svillar@igalia.com>
 
         [WebVR][OpenVR] Retrieve displayId and the z-depth of eye view frustum
index 2c79fde..82ab7c8 100644 (file)
@@ -468,9 +468,9 @@ bool MediaPlayerPrivateGStreamerBase::ensureGstGLContext()
         if (is<PlatformDisplayWayland>(sharedDisplay)) {
             GST_DEBUG("Creating Wayland shared display");
             if (shouldAdoptRef)
-                m_glDisplay = adoptGRef(GST_GL_DISPLAY(gst_gl_display_wayland_new_with_display(downcast<PlatformDisplayWayland>(sharedDisplay).native())));
+                m_glDisplay = adoptGRef(GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayWayland>(sharedDisplay).eglDisplay())));
             else
-                m_glDisplay = GST_GL_DISPLAY(gst_gl_display_wayland_new_with_display(downcast<PlatformDisplayWayland>(sharedDisplay).native()));
+                m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayWayland>(sharedDisplay).eglDisplay()));
         }
 #endif