diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-12 11:58:31 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-05-17 16:22:43 +0200 |
commit | f6ba26ff583fc0ea3e615521ddc26110e48a5d40 (patch) | |
tree | 15f32722f04d1e6a85ad59c4d363664e56866e99 /render/meson.build | |
parent | 9d55f712e3880927bcbc39bf4da7f4166ea94a91 (diff) |
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.
Diffstat (limited to 'render/meson.build')
0 files changed, 0 insertions, 0 deletions