color: add from sRGB to output color transformation

This is needed when drawing anything internal directly to an output,
like the borders/decorations in a nested compositor setup. This makes
the assumption that the internal stuff starts in sRGB, which should be
safe. As borders are never blended with other content, this should also
be sufficient.

This patch is a reminder that that path exists, rather than a real
implementation. To be implemented when someone needs it.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen
2021-03-22 17:32:07 +02:00
committed by Pekka Paalanen
parent 1d2eee208c
commit cda3951a9a
5 changed files with 38 additions and 0 deletions
+1
View File
@@ -374,6 +374,7 @@ struct weston_output {
int scale;
bool use_renderer_shadow_buffer;
struct weston_color_transform *from_sRGB_to_output;
struct weston_color_transform *from_blend_to_output;
bool from_blend_to_output_by_backend;