mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
output: Nuke wlr_output->events.present
This commit is contained in:
parent
20050bddbc
commit
544e678be0
9 changed files with 12 additions and 52 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue