aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-13 17:08:00 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-15 15:50:19 +0000
commit31ea61b390a3295248458ab7e8388848fb6810d0 (patch)
tree273333e14e11424a92b9b6990520ea002ae66909 /include/wlr/render
parent48541d2f2e19e8b126bb54269744962c119da209 (diff)
render: add wlr_renderer.events.lost
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/wlr_renderer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h
index 7d4e6720..c5c6be55 100644
--- a/include/wlr/render/wlr_renderer.h
+++ b/include/wlr/render/wlr_renderer.h
@@ -26,6 +26,12 @@ struct wlr_fbox;
struct wlr_renderer {
struct {
struct wl_signal destroy;
+ /**
+ * Emitted when the GPU is lost, e.g. on GPU reset.
+ *
+ * Compositors should destroy the renderer and re-create it.
+ */
+ struct wl_signal lost;
} events;
// private state