mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Add backend_info_t::max_buffer_age
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
d92a546beb
commit
5364c8ac9b
3 changed files with 5 additions and 0 deletions
|
@ -143,6 +143,9 @@ typedef struct backend_info {
|
|||
/// buffer is empty.
|
||||
int (*buffer_age)(void *backend_data, session_t *);
|
||||
|
||||
/// The maximum number buffer_age might return.
|
||||
int max_buffer_age;
|
||||
|
||||
// =========== Hooks ============
|
||||
/// Let the backend hook into the event handling queue
|
||||
} backend_info_t;
|
||||
|
|
|
@ -604,4 +604,5 @@ backend_info_t glx_backend = {
|
|||
.present = glx_present,
|
||||
.is_win_transparent = default_is_win_transparent,
|
||||
.is_frame_transparent = default_is_frame_transparent,
|
||||
.max_buffer_age = 5, // XXX why?
|
||||
};
|
||||
|
|
|
@ -503,6 +503,7 @@ struct backend_info xrender_backend = {
|
|||
.release_win = release_win,
|
||||
.is_win_transparent = default_is_win_transparent,
|
||||
.is_frame_transparent = default_is_frame_transparent,
|
||||
.max_buffer_age = 2,
|
||||
};
|
||||
|
||||
// vim: set noet sw=8 ts=8:
|
||||
|
|
Loading…
Reference in a new issue