mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-08 13:29:45 -05:00
Introduce wlr_output_layer
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. The goal is to make use of this API in a future scene-graph API. References: https://github.com/swaywm/wlroots/issues/1826
This commit is contained in:
parent
e13f3f8608
commit
999826a11a
7 changed files with 289 additions and 2 deletions
|
|
@ -21,7 +21,8 @@
|
|||
(WLR_OUTPUT_STATE_DAMAGE | \
|
||||
WLR_OUTPUT_STATE_SCALE | \
|
||||
WLR_OUTPUT_STATE_TRANSFORM | \
|
||||
WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED)
|
||||
WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED | \
|
||||
WLR_OUTPUT_STATE_LAYERS)
|
||||
|
||||
/**
|
||||
* A backend implementation of wlr_output.
|
||||
|
|
@ -93,6 +94,8 @@ struct wlr_output_impl {
|
|||
*/
|
||||
const struct wlr_drm_format_set *(*get_primary_formats)(
|
||||
struct wlr_output *output, uint32_t buffer_caps);
|
||||
struct wlr_output_layer *(*create_layer)(struct wlr_output *output);
|
||||
void (*destroy_layer)(struct wlr_output_layer *layer);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -146,4 +149,7 @@ void wlr_output_send_frame(struct wlr_output *output);
|
|||
void wlr_output_send_present(struct wlr_output *output,
|
||||
struct wlr_output_event_present *event);
|
||||
|
||||
void wlr_output_layer_init(struct wlr_output_layer *layer,
|
||||
struct wlr_output *output);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue