mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
output: drop wlr_output.needs_frame
The frame scheduler is responsible for de-duplicating needs_frame events.
This commit is contained in:
parent
c90abf3199
commit
cd219a7e38
2 changed files with 0 additions and 10 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue