summaryrefslogtreecommitdiff
path: root/src/common/backend.h
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-15 13:19:58 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-15 13:19:58 +0300
commit3d012d707d0242780cd386868ab511846dc9b0af (patch)
tree131e1621f400f78cba1541f2fbf9591ffcb4ce08 /src/common/backend.h
parent8d9ee60888e01e5d88c306afe0c77bad02a29e5b (diff)
Add damage presentation and reduce CPU surface latency
Add yasl_cpu_present_damage to submit partial damage rectangles. Skip commit timers for CPU surfaces to prevent display delay. Remove frame callback gating in surface_draw_frame when free buffers exist. Flush the display immediately on CPU present. Forward tearing option to window specifications.
Diffstat (limited to 'src/common/backend.h')
-rw-r--r--src/common/backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/backend.h b/src/common/backend.h
index e26f9d2..b111d3e 100644
--- a/src/common/backend.h
+++ b/src/common/backend.h
@@ -38,6 +38,7 @@ struct yasl_surface {
/* CPU canvas returned by yasl_cpu_pixels and copied into each drawn frame. */
uint32_t *canvas;
int canvas_width, canvas_height;
+ struct yasl_private_damage_list cpu_damage;
/* Window values last reported through public WINDOW events. */
struct yasl_private_vector2i reported_size;
uint32_t reported_scale_120, reported_state;