mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/wayland: add support for direct scan-out
Closes: https://github.com/swaywm/wlroots/issues/1830
This commit is contained in:
parent
cbb2781fed
commit
5bddb5a909
4 changed files with 134 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue