aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/interfaces
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-06-28 18:22:42 +0200
committerSimon Ser <contact@emersion.fr>2023-02-20 18:38:09 +0100
commit2f29b0c4381a8b544eff89d8be306154a808302e (patch)
treee99465fd568d7f924bcde08aec4c3e27509b7442 /include/wlr/interfaces
parent0335ae9566310e1aa06f17a4b87d98775fd03622 (diff)
Add wlr_output_layer
This is based on previous work [1] [2]. This new API allows compositors to display buffers without needing to perform rendering operations. This API can be implemented on Wayland using subsurfaces and on DRM using KMS planes. Compared to [1], this approach leverages wlr_addon_set to let backends attach their own private state to layers, removes the pending state (necessary for interop with wlr_output_commit_state()) and enum wlr_output_layer_state_field. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/1985 [2]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3447
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r--include/wlr/interfaces/wlr_output.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h
index 073ed023..6c0bbd6c 100644
--- a/include/wlr/interfaces/wlr_output.h
+++ b/include/wlr/interfaces/wlr_output.h
@@ -22,7 +22,8 @@
WLR_OUTPUT_STATE_SCALE | \
WLR_OUTPUT_STATE_TRANSFORM | \
WLR_OUTPUT_STATE_RENDER_FORMAT | \
- WLR_OUTPUT_STATE_SUBPIXEL)
+ WLR_OUTPUT_STATE_SUBPIXEL | \
+ WLR_OUTPUT_STATE_LAYERS)
/**
* A backend implementation of struct wlr_output.