aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-09-18 16:22:39 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-09-19 10:46:26 +0000
commit679d5ba699597104c885fbe706d1988da70cb073 (patch)
tree843365630325bd1b91439dabd925a65e03a3398c
parent8d6d2101bc2b33f6590de1d201a661620a48aa19 (diff)
output: inline output_attach_render()
No need to have a separate function for this. It's only used once.
-rw-r--r--types/output/render.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/types/output/render.c b/types/output/render.c
index e6e74764..0926a94b 100644
--- a/types/output/render.c
+++ b/types/output/render.c
@@ -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));