From 8a4957570f2d546cad033371db0c2463459536ce Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 2 Feb 2021 23:39:22 +0100 Subject: render/egl: remove EGL_WL_bind_wayland_display support Our GLES2 renderer doesn't use it anymore, so we can drop it. --- include/render/egl.h | 14 -------------- include/wlr/render/egl.h | 5 ----- 2 files changed, 19 deletions(-) (limited to 'include') diff --git a/include/render/egl.h b/include/render/egl.h index 191293bf..55e9ce80 100644 --- a/include/render/egl.h +++ b/include/render/egl.h @@ -23,20 +23,6 @@ struct wlr_egl *wlr_egl_create_with_drm_fd(int drm_fd); */ void wlr_egl_destroy(struct wlr_egl *egl); -/** - * Binds the given display to the EGL instance. - * This will allow clients to create EGL surfaces from wayland ones and render - * to it. - */ -bool wlr_egl_bind_display(struct wlr_egl *egl, struct wl_display *local_display); - -/** - * Creates an EGL image from the given wl_drm buffer resource. - */ -EGLImageKHR wlr_egl_create_image_from_wl_drm(struct wlr_egl *egl, - struct wl_resource *data, EGLint *fmt, int *width, int *height, - bool *inverted_y); - /** * Creates an EGL image from the given dmabuf attributes. Check usability * of the dmabuf with wlr_egl_check_import_dmabuf once first. diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 553bace7..c92364f5 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -37,7 +37,6 @@ struct wlr_egl { struct { // Display extensions - bool bind_wayland_display_wl; bool image_base_khr; bool image_dmabuf_import_ext; bool image_dmabuf_import_modifiers_ext; @@ -51,8 +50,6 @@ struct wlr_egl { PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR; PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR; PFNEGLQUERYWAYLANDBUFFERWL eglQueryWaylandBufferWL; - PFNEGLBINDWAYLANDDISPLAYWL eglBindWaylandDisplayWL; - PFNEGLUNBINDWAYLANDDISPLAYWL eglUnbindWaylandDisplayWL; PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT; PFNEGLQUERYDMABUFMODIFIERSEXTPROC eglQueryDmaBufModifiersEXT; PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR; @@ -60,8 +57,6 @@ struct wlr_egl { PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; } procs; - struct wl_display *wl_display; - struct wlr_drm_format_set dmabuf_texture_formats; struct wlr_drm_format_set dmabuf_render_formats; }; -- cgit v1.2.3