mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-10-30 15:40:45 +00:00
output: inline output_attach_render()
No need to have a separate function for this. It's only used once.
This commit is contained in:
parent
8d6d2101bc
commit
679d5ba699
@ -141,8 +141,8 @@ void output_clear_back_buffer(struct wlr_output *output) {
|
||||
output->back_buffer = NULL;
|
||||
}
|
||||
|
||||
static bool output_attach_render(struct wlr_output *output,
|
||||
struct wlr_output_state *state, int *buffer_age) {
|
||||
bool wlr_output_attach_render(struct wlr_output *output, int *buffer_age) {
|
||||
struct wlr_output_state *state = &output->pending;
|
||||
if (!output_attach_back_buffer(output, state, buffer_age)) {
|
||||
return false;
|
||||
}
|
||||
@ -150,10 +150,6 @@ static bool output_attach_render(struct wlr_output *output,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wlr_output_attach_render(struct wlr_output *output, int *buffer_age) {
|
||||
return output_attach_render(output, &output->pending, buffer_age);
|
||||
}
|
||||
|
||||
static bool output_attach_empty_back_buffer(struct wlr_output *output,
|
||||
const struct wlr_output_state *state) {
|
||||
assert(!(state->committed & WLR_OUTPUT_STATE_BUFFER));
|
||||
|
Loading…
Reference in New Issue
Block a user