diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-24 19:16:50 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-05-30 11:34:57 +0200 |
commit | 25dd3cc0cd89d3220f603e2fcb530ec80c29ff5f (patch) | |
tree | 713ad900078a6bc05bc04353c46e78c56e518851 /include/wlr/interfaces | |
parent | 93ee4c7684050807e959bb3b6d57826a72fba8c2 (diff) |
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.
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r-- | include/wlr/interfaces/wlr_output.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index 4de02c0b..7a1252db 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -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. * |