clutter/color-state: Drop using default colorspace and default tf

Use the defaults explicitliy, which is SRGB for both.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4020>
This commit is contained in:
Joan Torres
2024-09-20 17:42:57 +02:00
committed by Marge Bot
parent eff17bf1b5
commit 3b53f7cb6c
6 changed files with 12 additions and 26 deletions

View File

@ -202,7 +202,6 @@ clutter_tf_to_wayland (ClutterTransferFunction tf)
{
switch (tf)
{
case CLUTTER_TRANSFER_FUNCTION_DEFAULT:
case CLUTTER_TRANSFER_FUNCTION_SRGB:
return XX_COLOR_MANAGER_V4_TRANSFER_FUNCTION_SRGB;
case CLUTTER_TRANSFER_FUNCTION_PQ:
@ -237,7 +236,6 @@ clutter_primaries_to_wayland (ClutterColorspace primaries)
{
switch (primaries)
{
case CLUTTER_COLORSPACE_DEFAULT:
case CLUTTER_COLORSPACE_SRGB:
return XX_COLOR_MANAGER_V4_PRIMARIES_SRGB;
case CLUTTER_COLORSPACE_BT2020:
@ -885,7 +883,7 @@ creator_params_create (struct wl_client *client,
primaries = NULL;
break;
case CLUTTER_COLORIMETRY_TYPE_PRIMARIES:
colorspace = CLUTTER_COLORSPACE_DEFAULT;
colorspace = CLUTTER_COLORSPACE_SRGB;
primaries = creator_params->colorimetry.primaries;
break;
}