aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-09-24 15:33:15 +0300
committerDrew DeVault <sir@cmpwn.com>2019-10-16 09:40:26 -0400
commit5bddb5a909f9cf768cfcdbdd2bb943eb01484961 (patch)
treef7f76f897f52defa3f497e66fae060fb450b1498 /include
parentcbb2781fed7944dae680a66a35443f5b1a678ec7 (diff)
backend/wayland: add support for direct scan-out
Closes: https://github.com/swaywm/wlroots/issues/1830
Diffstat (limited to 'include')
-rw-r--r--include/backend/wayland.h5
1 files changed, 5 insertions, 0 deletions
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 <wlr/render/egl.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_box.h>
+#include <wlr/render/drm_format_set.h>
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;