mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
Add wl_surface.frame based frame scheduler
This commit is contained in:
parent
98cbf09f8a
commit
ad145dce86
4 changed files with 86 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ struct wlr_output *wlr_wl_output_create_from_surface(struct wlr_backend *backend
|
|||
*/
|
||||
bool wlr_backend_is_wl(const struct wlr_backend *backend);
|
||||
|
||||
/**
|
||||
* Check whether the Wayland server advertises the wp_presentation protocol.
|
||||
*/
|
||||
bool wlr_wl_backend_has_presentation_time(struct wlr_backend *backend);
|
||||
|
||||
/**
|
||||
* Check whether the provided input device is a Wayland input device.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -37,6 +37,11 @@ struct wlr_frame_scheduler {
|
|||
* render loop, it emits the frame signal when the compositor's event loop is idle.
|
||||
*/
|
||||
struct wlr_frame_scheduler *wlr_present_scheduler_create(struct wlr_output *output);
|
||||
/**
|
||||
* The Wayland scheduler maintains a render loop based on wl_surface.frame callbacks. To wake the
|
||||
* render loop, it emits the frame signal when the compositor's event loop is idle.
|
||||
*/
|
||||
struct wlr_frame_scheduler *wlr_wl_scheduler_create(struct wlr_output *output);
|
||||
|
||||
/**
|
||||
* Creates an appropriate frame scheduler for the given output's backend capabilities.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue