clutter/color-state: Add transfer function

Another enum, defining SRGB gamma transfer function, and the PQ transfer
function. As with color spaces, add a 'default' that for now is treated
as if it was sRGB.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:
Jonas Ådahl
2023-10-13 17:18:06 +08:00
committed by Sebastian Wick
parent b74515b8cf
commit af71749e75
5 changed files with 78 additions and 6 deletions

View File

@@ -17838,7 +17838,8 @@ create_default_color_state (ClutterActor *self)
{
ClutterColorState *color_state;
color_state = clutter_color_state_new (CLUTTER_COLORSPACE_DEFAULT);
color_state = clutter_color_state_new (CLUTTER_COLORSPACE_DEFAULT,
CLUTTER_TRANSFER_FUNCTION_DEFAULT);
return color_state;
}