Rename get_present_clock to get_presentation clock, use it

This commit is contained in:
emersion 2018-10-01 22:57:36 +02:00
parent abddfc99f2
commit b0635bf3e7
8 changed files with 34 additions and 13 deletions

View file

@ -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

View file

@ -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);
};
/**

View file

@ -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,