[mutter] cogl: Remove ability to bind Wayland EGL display
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl: Remove ability to bind Wayland EGL display
- Date: Tue, 18 May 2021 14:31:19 +0000 (UTC)
commit 72f03e9c748501ea32f850015d046b19badf83e9
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu May 6 14:49:17 2021 +0200
cogl: Remove ability to bind Wayland EGL display
We do that in the Wayland infrastructure code now, so remove Cogl's
ability to do the same.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1863>
cogl/cogl/cogl-display-private.h | 4 ----
cogl/cogl/cogl-display.c | 14 --------------
cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h | 6 ------
cogl/cogl/winsys/cogl-winsys-egl.c | 12 ------------
4 files changed, 36 deletions(-)
---
diff --git a/cogl/cogl/cogl-display-private.h b/cogl/cogl/cogl-display-private.h
index 74dfb8e597..e200363459 100644
--- a/cogl/cogl/cogl-display-private.h
+++ b/cogl/cogl/cogl-display-private.h
@@ -44,10 +44,6 @@ struct _CoglDisplay
CoglRenderer *renderer;
CoglOnscreenTemplate *onscreen_template;
-#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
- struct wl_display *wayland_compositor_display;
-#endif
-
void *winsys;
};
diff --git a/cogl/cogl/cogl-display.c b/cogl/cogl/cogl-display.c
index ea5383944b..64e9df809a 100644
--- a/cogl/cogl/cogl-display.c
+++ b/cogl/cogl/cogl-display.c
@@ -38,9 +38,6 @@
#include "cogl-display-private.h"
#include "cogl-renderer-private.h"
-#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
-#include "cogl-wayland-server.h"
-#endif
#include "cogl-gtype-private.h"
#include "winsys/cogl-winsys-private.h"
@@ -152,14 +149,3 @@ cogl_display_setup (CoglDisplay *display,
return TRUE;
}
-
-#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
-void
-cogl_wayland_display_set_compositor_display (CoglDisplay *display,
- struct wl_display *wayland_display)
-{
- g_return_if_fail (display->setup == FALSE);
-
- display->wayland_compositor_display = wayland_display;
-}
-#endif
diff --git a/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
b/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
index a65586ce1b..e10c019385 100644
--- a/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
+++ b/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
@@ -86,12 +86,6 @@ COGL_WINSYS_FEATURE_BEGIN (bind_wayland_display,
"WL\0",
"bind_wayland_display\0",
COGL_EGL_WINSYS_FEATURE_EGL_IMAGE_FROM_WAYLAND_BUFFER)
-COGL_WINSYS_FEATURE_FUNCTION (EGLImageKHR, eglBindWaylandDisplay,
- (EGLDisplay dpy,
- struct wl_display *wayland_display))
-COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglUnbindWaylandDisplay,
- (EGLDisplay dpy,
- struct wl_display *wayland_display))
COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglQueryWaylandBuffer,
(EGLDisplay dpy,
struct wl_resource *buffer,
diff --git a/cogl/cogl/winsys/cogl-winsys-egl.c b/cogl/cogl/winsys/cogl-winsys-egl.c
index ed47f5aa56..85409433d3 100644
--- a/cogl/cogl/winsys/cogl-winsys-egl.c
+++ b/cogl/cogl/winsys/cogl-winsys-egl.c
@@ -498,18 +498,6 @@ _cogl_winsys_display_setup (CoglDisplay *display,
egl_display = g_new0 (CoglDisplayEGL, 1);
display->winsys = egl_display;
-#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
- if (display->wayland_compositor_display)
- {
- struct wl_display *wayland_display = display->wayland_compositor_display;
- CoglRendererEGL *egl_renderer = display->renderer->winsys;
-
- if (egl_renderer->pf_eglBindWaylandDisplay)
- egl_renderer->pf_eglBindWaylandDisplay (egl_renderer->edpy,
- wayland_display);
- }
-#endif
-
if (egl_renderer->platform_vtable->display_setup &&
!egl_renderer->platform_vtable->display_setup (display, error))
goto error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]