From 25dd3cc0cd89d3220f603e2fcb530ec80c29ff5f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 24 May 2022 19:16:50 +0200 Subject: 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. --- include/wlr/interfaces/wlr_output.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/wlr/interfaces') 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. * -- cgit v1.2.3