mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: make attach_render and rollback_render optional
If these aren't provided by the backend, allocate a swapchain for the output.
This commit is contained in:
parent
233a2617cf
commit
1a06ea7750
3 changed files with 142 additions and 12 deletions
|
|
@ -17,8 +17,7 @@
|
|||
/**
|
||||
* A backend implementation of wlr_output.
|
||||
*
|
||||
* The functions commit, attach_render and rollback_render are mandatory. Other
|
||||
* functions are optional.
|
||||
* The commit function is mandatory. Other functions are optional.
|
||||
*/
|
||||
struct wlr_output_impl {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -185,6 +185,9 @@ struct wlr_output {
|
|||
struct wlr_buffer *cursor_front_buffer;
|
||||
int software_cursor_locks; // number of locks forcing software cursors
|
||||
|
||||
struct wlr_swapchain *swapchain;
|
||||
struct wlr_buffer *back_buffer;
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
|
||||
void *data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue