Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

lord-bench: stubs for the Wayland calls the frame-cost work added to paint.c (wl_paint_save, wl_paint_restore, wl_draws_meet)

Federico Pereirab8b1e545958a
diff --git a/server/src/bench/lbui.c b/server/src/bench/lbui.c
index fb780f4..77ae1a6 100644
--- a/server/src/bench/lbui.c
+++ b/server/src/bench/lbui.c
@@ -24,6 +24,9 @@ void wl_paint(Canvas *c, int id, int node, float x, float y, float w, float h, f
void wl_paint_holes(int on) { (void)on; }
void wl_paint_kept(void) {}
void wl_paint_keep(void) {}
+void wl_paint_save(void) {}
+void wl_paint_restore(void) {}
+int wl_draws_meet(Rect r) { (void)r; return 0; }
void wl_paint_begin(void) {}
void wl_paint_popups(Canvas *c) { (void)c; }
void media_paint(Canvas *c, int id, int node, float x, float y, float w, float h, float r, float op) { (void)c; (void)id; (void)node; (void)x; (void)y; (void)w; (void)h; (void)r; (void)op; }