render/timeline: add wlr_render_timeline_transfer

This commit is contained in:
Simon Ser 2021-10-21 15:23:20 +02:00
parent 3096cf7964
commit 43df0bd565
2 changed files with 21 additions and 0 deletions

View file

@ -39,6 +39,13 @@ struct wlr_render_timeline *wlr_render_timeline_import(int drm_fd,
* Destroy a synchronization timeline.
*/
void wlr_render_timeline_destroy(struct wlr_render_timeline *timeline);
/**
* Transfer a point from a timeline to another.
*
* Both timelines must have been created with the same DRM FD.
*/
bool wlr_render_timeline_transfer(struct wlr_render_timeline *dst,
uint64_t dst_point, struct wlr_render_timeline *src, uint64_t src_point);
/**
* Export a timeline point as a sync_file FD.
*