diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 6 |
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 |