1
0
Fork 0
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:
Yuxuan Shui 2024-05-23 15:13:37 +01:00
parent f5bebb3e2e
commit 5c1b0ba7a1
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4
7 changed files with 30 additions and 10 deletions

View file

@ -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