mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
Merge branch 'surface-texture-v2' into 'master'
Replace wlr_client_buffer with wlr_surface_texture, take 2 See merge request wlroots/wlroots!4437
This commit is contained in:
commit
8fa5b78f66
13 changed files with 209 additions and 225 deletions
|
|
@ -18,9 +18,12 @@ void wlr_texture_init(struct wlr_texture *texture, struct wlr_renderer *renderer
|
|||
.width = width,
|
||||
.height = height,
|
||||
};
|
||||
|
||||
wl_signal_init(&texture->events.destroy);
|
||||
}
|
||||
|
||||
void wlr_texture_destroy(struct wlr_texture *texture) {
|
||||
wl_signal_emit_mutable(&texture->events.destroy, NULL);
|
||||
if (texture && texture->impl && texture->impl->destroy) {
|
||||
texture->impl->destroy(texture);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue