mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-14 14:32:57 -04:00
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:
parent
e8c03e9ce9
commit
eb2a36de69
2 changed files with 21 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue