From 4145406fae437dce2f0af6e078e35566634f2c19 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 15:14:41 +0300 Subject: perf: unify platform-independent state, branchless queue masking and native handle caching --- src/common/backend.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/backend.h') diff --git a/src/common/backend.h b/src/common/backend.h index 6ab7248..e1d29c5 100644 --- a/src/common/backend.h +++ b/src/common/backend.h @@ -9,13 +9,20 @@ struct yasl_backend_ops; struct yasl_display { const struct yasl_backend_ops *ops; + void *native_handle; struct yasl_display_cbs callbacks; struct yasl_loop *loop; }; struct yasl_surface { struct yasl_display *display; + void *native_handle; + struct yasl_vector2i size; + uint32_t scale_120; + uint32_t state; + uint32_t bg_color; struct yasl_surface_cbs callbacks; + void *ud; uint64_t frame_generation; yasl_timer_id *timers; int timer_count; -- cgit v1.2.3