mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
f6ba26ff58
Make it so wlr_gles2_texture is ref'counted (via wlr_buffer). This is similar to wlr_gles2_buffer or wlr_drm_fb work. When creating a wlr_texture from a wlr_buffer, first check if we already have a texture for the buffer. If so, increase the wlr_buffer ref'count and make sure any changes made by an external process are made visible (by invalidating the texture). When destroying a wlr_texture created from a wlr_buffer, decrease the ref'count, but keep the wlr_texture around in case the caller uses it again. When the wlr_buffer is destroyed, cleanup the wlr_texture. |
||
---|---|---|
.. | ||
gles2 | ||
pixman | ||
allocator.c | ||
dmabuf.c | ||
drm_dumb_allocator.c | ||
drm_format_set.c | ||
egl.c | ||
gbm_allocator.c | ||
meson.build | ||
pixel_format.c | ||
shm_allocator.c | ||
swapchain.c | ||
wlr_renderer.c | ||
wlr_texture.c |