wlroots-hyprland/render/gles2
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
..
meson.build render: make GLES2 renderer optional 2021-04-17 16:39:40 +02:00
pixel_format.c render/gles2: remove depth and bpp gles2_pixel_format, use drm pixel format 2021-03-25 10:55:54 +01:00
renderer.c render/gles2: implement texture_from_buffer 2021-05-17 16:22:43 +02:00
shaders.c render: drop support for ellipses 2021-04-08 09:10:03 +02:00
texture.c render/gles2: implement texture_from_buffer 2021-05-17 16:22:43 +02:00