mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Rename get_present_clock to get_presentation clock, use it
This commit is contained in:
parent
abddfc99f2
commit
b0635bf3e7
8 changed files with 34 additions and 13 deletions
|
|
@ -65,6 +65,6 @@ struct wlr_session *wlr_backend_get_session(struct wlr_backend *backend);
|
|||
/**
|
||||
* Returns the clock used by the backend for presentation feedback.
|
||||
*/
|
||||
clockid_t wlr_backend_get_present_clock(struct wlr_backend *backend);
|
||||
clockid_t wlr_backend_get_presentation_clock(struct wlr_backend *backend);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ struct wlr_backend_impl {
|
|||
void (*destroy)(struct wlr_backend *backend);
|
||||
struct wlr_renderer *(*get_renderer)(struct wlr_backend *backend);
|
||||
struct wlr_session *(*get_session)(struct wlr_backend *backend);
|
||||
clockid_t (*get_present_clock)(struct wlr_backend *backend);
|
||||
clockid_t (*get_presentation_clock)(struct wlr_backend *backend);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -47,7 +47,10 @@ struct wlr_presentation_event {
|
|||
uint32_t flags; // wp_presentation_feedback_kind
|
||||
};
|
||||
|
||||
struct wlr_presentation *wlr_presentation_create(struct wl_display *display);
|
||||
struct wlr_backend;
|
||||
|
||||
struct wlr_presentation *wlr_presentation_create(struct wl_display *display,
|
||||
struct wlr_backend *backend);
|
||||
void wlr_presentation_destroy(struct wlr_presentation *presentation);
|
||||
void wlr_presentation_send_surface_presented(
|
||||
struct wlr_presentation *presentation, struct wlr_surface *surface,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue