From 2048caaee6a903da46fcdc282cbe0ce4818647df Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 20 Oct 2020 16:06:26 +0300 Subject: [PATCH] color: put alpha mode into a request of its own Signed-off-by: Pekka Paalanen --- .../color-management-unstable-v1.xml | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/unstable/color-management/color-management-unstable-v1.xml b/unstable/color-management/color-management-unstable-v1.xml index d724aef..3a03fa1 100644 --- a/unstable/color-management/color-management-unstable-v1.xml +++ b/unstable/color-management/color-management-unstable-v1.xml @@ -331,6 +331,20 @@ + + + Assuming an alpha channel exists, it is always linear. The alpha mode + determines whether the color channels include alpha pre-multiplied or + not. Using straight alpha might have performance benefits. + + Alpha mode is double buffered, and will be applied at the time + wl_surface.commit of the corresponding wl_surface is called. + + By default, a surface is assumed to have pre-multiplied alpha. + + + + Set the extended dynamic range (EDR) value for the underlying surface. @@ -372,20 +386,16 @@ - Set the color space of the underlying surface. The color space, - render intent and alpha mode are double buffered, and will be applied + Set the color space of the underlying surface. The color space and + render intent are double buffered, and will be applied at the time wl_surface.commit of the corresponding wl_surface is called. The render intent gives the compositor a hint what to optimize for in color space transformations. - The alpha channel is always linear. The alpha mode determines whether - the color channels include alpha pre-multiplied or not. Using straight - alpha might have performance benefits. - - By default, a surface is assumed to have the sRGB color space, an - arbitrary render intent, and pre-multiplied alpha. + By default, a surface is assumed to have the sRGB color space and an + arbitrary render intent. If the color space of the surface matches the color space of an output it is shown on the performance and color accuracy might improve. To find @@ -396,7 +406,6 @@ -