Merge branch 'output-auto-buffer' into 'master'

output: Remove output_ensure_buffer

See merge request wlroots/wlroots!4484
This commit is contained in:
Alexander Orzechowski 2025-03-25 12:35:37 +00:00
commit c289b8e462
21 changed files with 215 additions and 268 deletions

View file

@ -12,8 +12,6 @@ bool output_pending_enabled(struct wlr_output *output,
bool output_pick_format(struct wlr_output *output,
const struct wlr_drm_format_set *display_formats,
struct wlr_drm_format *format, uint32_t fmt);
bool output_ensure_buffer(struct wlr_output *output,
struct wlr_output_state *state, bool *new_back_buffer);
bool output_cursor_set_texture(struct wlr_output_cursor *cursor,
struct wlr_texture *texture, bool own_texture, const struct wlr_fbox *src_box,

View file

@ -339,12 +339,12 @@ void wlr_output_destroy(struct wlr_output *output);
* Computes the transformed output resolution.
*/
void wlr_output_transformed_resolution(struct wlr_output *output,
int *width, int *height);
const struct wlr_output_state *state, int *width, int *height);
/**
* Computes the transformed and scaled output resolution.
*/
void wlr_output_effective_resolution(struct wlr_output *output,
int *width, int *height);
const struct wlr_output_state *state, int *width, int *height);
/**
* Test whether this output state would be accepted by the backend. If this
* function returns true, wlr_output_commit_state() will only fail due to a