render/texture: Emit signals on destroy and update

This allows compositors to track the texture life cycle.

Allows e.g. compositors using the GLES2 renderer to know
when the texture gotten via `wlr_gles2_texture_get_attribs()`
changes.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther 2026-04-19 16:14:19 +02:00
parent e8c03e9ce9
commit eb2a36de69
2 changed files with 21 additions and 1 deletions

View file

@ -24,6 +24,11 @@ struct wlr_texture {
uint32_t width, height;
struct wlr_renderer *renderer;
struct {
struct wl_signal destroy;
struct wl_signal updated;
} events;
};
struct wlr_texture_read_pixels_options {