diff options
author | LaserEyess <lasereyess@users.noreply.github.com> | 2022-11-15 20:52:56 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-11-20 19:13:59 +0000 |
commit | a62f71bfbeb8f35bf5f09f12e48b63505c475750 (patch) | |
tree | 019ec5e071e6ca90214f6f3623037eb2b540a696 /video/out/wayland_common.h | |
parent | 303178e6451da7072aa71ce5e3cbffc233d6dbd1 (diff) | |
download | mpv-a62f71bfbeb8f35bf5f09f12e48b63505c475750.tar.bz2 mpv-a62f71bfbeb8f35bf5f09f12e48b63505c475750.tar.xz |
vo_dmabuf_wayland: use single-pixel-buffer-v1
The new single-pixel-buffer protocol is designed to optimize the case
for using a solid color as an underlay wl_surface. It works the same as
the wl_shm 1x1 pixel trick currently used, but it allows the compositor
to make optimizations with more certainty than the wl_shm trick.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r-- | video/out/wayland_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 627ea0d057..4f505b903b 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -106,6 +106,10 @@ struct vo_wayland_state { int64_t refresh_interval; bool use_present; + /* single-pixel-buffer */ + /* TODO: unvoid this if required wayland-protocols is bumped to 1.27+ */ + void *single_pixel_manager; + /* xdg-decoration */ struct zxdg_decoration_manager_v1 *xdg_decoration_manager; struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration; |