output: drop wlr_output.needs_frame

The frame scheduler is responsible for de-duplicating needs_frame
events.
This commit is contained in:
Simon Ser 2024-01-08 18:44:34 +01:00 committed by Rose Hudson
parent c90abf3199
commit cd219a7e38
2 changed files with 0 additions and 10 deletions

View file

@ -150,8 +150,6 @@ struct wlr_output {
enum wlr_output_adaptive_sync_status adaptive_sync_status;
uint32_t render_format;
bool needs_frame;
// true for example with VR headsets
bool non_desktop;

View file

@ -680,10 +680,6 @@ bool output_prepare_commit(struct wlr_output *output, const struct wlr_output_st
void output_apply_commit(struct wlr_output *output, const struct wlr_output_state *state) {
output->commit_seq++;
if (output_pending_enabled(output, state)) {
output->needs_frame = false;
}
output_apply_state(output, state);
struct timespec now;
@ -817,10 +813,6 @@ size_t wlr_output_get_gamma_size(struct wlr_output *output) {
}
void wlr_output_update_needs_frame(struct wlr_output *output) {
if (output->needs_frame) {
return;
}
output->needs_frame = true;
wl_signal_emit_mutable(&output->events.needs_frame, output);
}