mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
output: pass wlr_output_state to backend
Groundwork for the following commits. The goal is to allow users to specify their own wlr_output_state instead of wlr_output.pending.
This commit is contained in:
parent
93ee4c7684
commit
25dd3cc0cd
7 changed files with 75 additions and 69 deletions
|
|
@ -54,18 +54,18 @@ struct wlr_output_impl {
|
|||
*/
|
||||
void (*destroy)(struct wlr_output *output);
|
||||
/**
|
||||
* Check that the pending output state is a valid configuration.
|
||||
* Check that the supplied output state is a valid configuration.
|
||||
*
|
||||
* If this function returns true, commit can only fail due to a runtime
|
||||
* error.
|
||||
*/
|
||||
bool (*test)(struct wlr_output *output);
|
||||
bool (*test)(struct wlr_output *output, const struct wlr_output_state *state);
|
||||
/**
|
||||
* Commit the pending output state.
|
||||
* Commit the supplied output state.
|
||||
*
|
||||
* If a buffer has been attached, a frame event is scheduled.
|
||||
*/
|
||||
bool (*commit)(struct wlr_output *output);
|
||||
bool (*commit)(struct wlr_output *output, const struct wlr_output_state *state);
|
||||
/**
|
||||
* Get the maximum number of gamma LUT elements for each channel.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue