From 5bddb5a909f9cf768cfcdbdd2bb943eb01484961 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 24 Sep 2019 15:33:15 +0300 Subject: backend/wayland: add support for direct scan-out Closes: https://github.com/swaywm/wlroots/issues/1830 --- include/backend/wayland.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index a237ced7..886aea9f 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -12,6 +12,7 @@ #include #include #include +#include struct wlr_wl_backend { struct wlr_backend backend; @@ -34,12 +35,14 @@ struct wlr_wl_backend { struct xdg_wm_base *xdg_wm_base; struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1; struct zwp_pointer_gestures_v1 *zwp_pointer_gestures_v1; + struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1; struct wl_seat *seat; struct wl_pointer *pointer; struct wl_keyboard *keyboard; struct wlr_wl_pointer *current_pointer; struct zwp_tablet_manager_v2 *tablet_manager; char *seat_name; + struct wlr_drm_format_set linux_dmabuf_v1_formats; }; struct wlr_wl_output { @@ -55,6 +58,8 @@ struct wlr_wl_output { struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1; struct wl_egl_window *egl_window; EGLSurface egl_surface; + struct wl_buffer *pending_wl_buffer, *current_wl_buffer; + struct wlr_buffer *current_buffer; uint32_t enter_serial; -- cgit v1.2.3