wlr_raster: Introduce invalidated signal

If this raster becomes invalid meaning that the buffer neither
has a buffer or textures. The invalidated signal will be called
to signify to its owner that it should be recreated.
This commit is contained in:
Alexander Orzechowski 2024-02-24 08:35:56 -05:00
parent 204a2b733b
commit dbf10ebdf1
2 changed files with 16 additions and 0 deletions

View file

@ -23,6 +23,7 @@ struct wlr_allocator;
struct wlr_raster_source {
struct wlr_texture *texture;
struct wlr_allocator *allocator; // may be NULL
struct wlr_raster *raster;
struct wl_list link;
struct wl_listener renderer_destroy;
@ -43,6 +44,7 @@ struct wlr_raster {
struct {
struct wl_signal destroy;
struct wl_signal invalidated;
} events;
// private state