wlroots/render
Simon Ser f6ba26ff58 render/gles2: implement texture_from_buffer
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.
2021-05-17 16:22:43 +02:00
..
gles2 render/gles2: implement texture_from_buffer 2021-05-17 16:22:43 +02:00
pixman render: introduce renderer_get_render_buffer_caps 2021-04-28 20:55:57 +02:00
allocator.c render: add DRM dumb buffer allocator 2021-05-05 10:40:21 +02:00
dmabuf.c render/dmabuf: make src arg const in wlr_dmabuf_attributes_copy 2021-02-02 19:53:16 +01:00
drm_dumb_allocator.c render: add DRM dumb buffer allocator 2021-05-05 10:40:21 +02:00
drm_format_set.c render/drm_format_set: add special case for LINEAR-only formats 2020-12-30 11:17:43 +01:00
egl.c render/egl: query and display EGL driver name 2021-05-11 12:43:25 +02:00
gbm_allocator.c render/gbm_allocator: duplicate drm fd during creation process 2021-05-05 10:40:21 +02:00
meson.build render: add DRM dumb buffer allocator 2021-05-05 10:40:21 +02:00
pixel_format.c render/pixel_format: add XBGR8888 and ABGR8888 format 2021-03-25 10:55:54 +01:00
shm_allocator.c render/shm_allocator: make wlr_shm_allocator_create return a wlr_allocator 2021-04-28 20:55:57 +02:00
swapchain.c render/swapchain: add support for buffer age 2020-11-15 22:48:42 +01:00
wlr_renderer.c render: remove wlr_ prefix from wlr_renderer_autocreate_with_drm_fd 2021-04-29 09:46:34 +02:00
wlr_texture.c render: introduce wlr_texture_from_buffer 2021-05-17 16:22:43 +02:00