mirror of
https://github.com/yshui/picom.git
synced 2025-10-30 23:46:46 -04:00
backend: turn max_buffer_age into a function
We want to change the backend interface as little as possible once we release it as a public interface, so while we still can, we should try to give it maximum flexibility. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
f5bebb3e2e
commit
5c1b0ba7a1
7 changed files with 30 additions and 10 deletions
|
|
@ -450,7 +450,7 @@ struct backend_operations {
|
|||
bool (*last_render_time)(backend_t *backend_data, struct timespec *ts);
|
||||
|
||||
/// The maximum number buffer_age might return.
|
||||
int max_buffer_age;
|
||||
int (*max_buffer_age)(backend_t *backend_data);
|
||||
|
||||
// =========== Post-processing ============
|
||||
/// Create a blur context that can be used to call `blur` for images with a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue