aboutsummaryrefslogtreecommitdiff
path: root/tinywl
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-12 11:58:31 +0200
committerSimon Ser <contact@emersion.fr>2021-05-17 16:22:43 +0200
commitf6ba26ff583fc0ea3e615521ddc26110e48a5d40 (patch)
tree15f32722f04d1e6a85ad59c4d363664e56866e99 /tinywl
parent9d55f712e3880927bcbc39bf4da7f4166ea94a91 (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 'tinywl')
0 files changed, 0 insertions, 0 deletions