mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-07 22:50:42 +02:00
When importing a dmabuf to a new EGLImage, add the option to apply color-representation metadata to specify the color encoding and range. To get this information from the wlr_surface to the new EGLImage, I store it in wlr_dmabuf_v1_buffer. This seems reasonable because we can currently only apply color representation to dmabufs anyway. Note that this currently won't update if color-representation is changed on a surface which has already been rendered (so already has an EGLImage). It only works when color-representation is set before the first render. To fix this I think we'll need some mechanism to re-import the dmabuf if color-repr is changed. |
||
|---|---|---|
| .. | ||
| allocator | ||
| color.h | ||
| dmabuf.h | ||
| drm_format_set.h | ||
| egl.h | ||
| gles2.h | ||
| pixel_format.h | ||
| pixman.h | ||
| vulkan.h | ||
| wlr_renderer.h | ||