mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
Merge branch 'frame-scheduler-helper' into 'master'
Draft: render: add frame scheduler helper See merge request wlroots/wlroots!3783
This commit is contained in:
commit
e7737537ef
13 changed files with 479 additions and 7 deletions
|
|
@ -48,6 +48,8 @@ struct wlr_renderer_impl {
|
|||
uint32_t (*get_render_buffer_caps)(struct wlr_renderer *renderer);
|
||||
struct wlr_texture *(*texture_from_buffer)(struct wlr_renderer *renderer,
|
||||
struct wlr_buffer *buffer);
|
||||
bool (*get_time)(struct wlr_renderer *r, struct timespec *t);
|
||||
struct wlr_render_timestamp *(*create_timestamp)(struct wlr_renderer *r);
|
||||
};
|
||||
|
||||
void wlr_renderer_init(struct wlr_renderer *renderer,
|
||||
|
|
@ -62,4 +64,17 @@ struct wlr_texture_impl {
|
|||
void wlr_texture_init(struct wlr_texture *texture,
|
||||
const struct wlr_texture_impl *impl, uint32_t width, uint32_t height);
|
||||
|
||||
struct wlr_render_timestamp {
|
||||
const struct wlr_render_timestamp_impl *impl;
|
||||
};
|
||||
|
||||
struct wlr_render_timestamp_impl {
|
||||
void (*destroy)(struct wlr_render_timestamp *timestamp);
|
||||
bool (*get_time)(struct wlr_render_timestamp *timestamp,
|
||||
struct timespec *t);
|
||||
};
|
||||
|
||||
void wlr_render_timestamp_init(struct wlr_render_timestamp *timestamp,
|
||||
const struct wlr_render_timestamp_impl *impl);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue