output: Nuke wlr_output->events.present

This commit is contained in:
Alexander Orzechowski 2023-10-03 05:41:41 -04:00
parent 20050bddbc
commit 544e678be0
9 changed files with 12 additions and 52 deletions

View file

@ -67,7 +67,6 @@ struct wlr_wl_presentation_feedback {
struct wlr_wl_output *output;
struct wl_list link; // wlr_wl_output.presentation_feedbacks
struct wp_presentation_feedback *feedback;
uint32_t commit_seq;
};
struct wlr_wl_output_layer {

View file

@ -37,6 +37,7 @@ struct wlr_x11_output {
struct wlr_output wlr_output;
struct wlr_x11_backend *x11;
struct wl_list link; // wlr_x11_backend.outputs
uint32_t serial;
xcb_window_t win;
xcb_present_event_t present_event_id;

View file

@ -115,13 +115,6 @@ void wlr_output_update_needs_frame(struct wlr_output *output);
* See wlr_output.events.frame.
*/
void wlr_output_send_frame(struct wlr_output *output);
/**
* Send a present event.
*
* See wlr_output.events.present.
*/
void wlr_output_send_present(struct wlr_output *output,
struct wlr_output_event_present *event);
/**
* Request the compositor to apply new state.
*/

View file

@ -160,9 +160,6 @@ struct wlr_output {
struct wlr_output_state pending;
// Commit sequence number. Incremented on each commit, may overflow.
uint32_t commit_seq;
struct {
// Request to render a frame
struct wl_signal frame;
@ -176,9 +173,6 @@ struct wlr_output {
struct wl_signal precommit; // struct wlr_output_event_precommit
// Emitted right after commit
struct wl_signal commit; // struct wlr_output_event_commit
// Emitted right after a commit has been presented to the user for
// enabled outputs
struct wl_signal present; // struct wlr_output_event_present
// Emitted after a client bound the wl_output global
struct wl_signal bind; // struct wlr_output_event_bind
struct wl_signal description;
@ -209,6 +203,11 @@ struct wlr_output {
struct wlr_addon_set addons;
void *data;
// private state
// used for when to create a new back buffer
bool not_committed;
};
struct wlr_output_event_damage {
@ -246,9 +245,6 @@ enum wlr_output_present_flag {
struct wlr_output_event_present {
struct wlr_output *output;
// Frame submission for which this presentation event is for (see
// wlr_output.commit_seq).
uint32_t commit_seq;
// Whether the frame was presented at all.
bool presented;
// Time when the content update turned into light the first time.