From c531795b8372eb0e69aa874476f3e96cd7c09dfc Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 29 Jul 2019 20:13:26 +0200 Subject: wip: initial multithreaded renderer --- terminal.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 86b92d17..de359576 100644 --- a/terminal.h +++ b/terminal.h @@ -5,9 +5,11 @@ #include #include +#include #include #include FT_FREETYPE_H +#include FT_LCD_FILTER_H #include #include @@ -211,6 +213,11 @@ struct glyph { cairo_surface_t *surf; int left; int top; + + int format; + int width; + int height; + int stride; }; struct font { @@ -341,6 +348,17 @@ struct terminal { struct { struct wl_callback *frame_callback; + struct { + size_t count; + sem_t start; + sem_t done; + cnd_t cond; + mtx_t lock; + tll(int) queue; + thrd_t *threads; + struct buffer *buf; + } workers; + /* Last rendered cursor position */ struct { struct coord actual; /* Absolute */ -- cgit v1.3