mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
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:
parent
204a2b733b
commit
dbf10ebdf1
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue