mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
backend: add get_present_clock
This commit is contained in:
parent
9203bfdd4f
commit
54e1287f30
7 changed files with 33 additions and 6 deletions
|
|
@ -65,10 +65,16 @@ static struct wlr_renderer *backend_get_renderer(
|
|||
}
|
||||
}
|
||||
|
||||
static clockid_t backend_get_present_clock(struct wlr_backend *backend) {
|
||||
struct wlr_drm_backend *drm = get_drm_backend_from_backend(backend);
|
||||
return drm->clock;
|
||||
}
|
||||
|
||||
static struct wlr_backend_impl backend_impl = {
|
||||
.start = backend_start,
|
||||
.destroy = backend_destroy,
|
||||
.get_renderer = backend_get_renderer,
|
||||
.get_present_clock = backend_get_present_clock,
|
||||
};
|
||||
|
||||
bool wlr_backend_is_drm(struct wlr_backend *b) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue