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:
Simon Ser 2020-01-09 18:37:07 +01:00
parent 7429ba116f
commit 0fad58760a
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 277 additions and 1 deletions

View file

@ -29,6 +29,8 @@ struct wlr_output_impl {
size_t (*get_gamma_size)(struct wlr_output *output);
bool (*export_dmabuf)(struct wlr_output *output,
struct wlr_dmabuf_attributes *attribs);
struct wlr_output_layer *(*create_layer)(struct wlr_output *output);
void (*destroy_layer)(struct wlr_output_layer *layer);
};
void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend,
@ -44,4 +46,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