aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-01 22:57:36 +0200
committeremersion <contact@emersion.fr>2018-10-04 22:00:22 +0200
commitb0635bf3e7f0de7c641ffafb0e8962d62ee88c73 (patch)
tree4729687de85fff3e855c1958c09a03f10ab54831 /include/wlr
parentabddfc99f2a0fb4f61292e3ac1c0b142effa28c2 (diff)
Rename get_present_clock to get_presentation clock, use it
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend.h2
-rw-r--r--include/wlr/backend/interface.h2
-rw-r--r--include/wlr/types/wlr_presentation_time.h5
3 files changed, 6 insertions, 3 deletions
diff --git a/include/wlr/backend.h b/include/wlr/backend.h
index aee45b73..54f2b5e8 100644
--- a/include/wlr/backend.h
+++ b/include/wlr/backend.h
@@ -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
diff --git a/include/wlr/backend/interface.h b/include/wlr/backend/interface.h
index a930c241..4a6a5cbb 100644
--- a/include/wlr/backend/interface.h
+++ b/include/wlr/backend/interface.h
@@ -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);
};
/**
diff --git a/include/wlr/types/wlr_presentation_time.h b/include/wlr/types/wlr_presentation_time.h
index 71bf5977..9f9f0e87 100644
--- a/include/wlr/types/wlr_presentation_time.h
+++ b/include/wlr/types/wlr_presentation_time.h
@@ -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,