colorspace: Rename 'unknown' to 'default'
An unknown color space isn't very useful to have, as there is not very actionable what to do with it. Rename it to 'default'. Later it'll be used to an implicit color space, which in practice will be treated as sRGB. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:
parent
2ae5af62ea
commit
563fff9c9c
@ -84,7 +84,7 @@ clutter_color_state_get_colorspace (ClutterColorState *color_state)
|
||||
ClutterColorStatePrivate *priv;
|
||||
|
||||
g_return_val_if_fail (CLUTTER_IS_COLOR_STATE (color_state),
|
||||
CLUTTER_COLORSPACE_UNKNOWN);
|
||||
CLUTTER_COLORSPACE_DEFAULT);
|
||||
|
||||
priv = clutter_color_state_get_instance_private (color_state);
|
||||
|
||||
|
@ -1002,7 +1002,7 @@ typedef enum
|
||||
|
||||
/**
|
||||
* ClutterColorspace:
|
||||
* @CLUTTER_COLORSPACE_UNKNOWN: Unknown colorspace
|
||||
* @CLUTTER_COLORSPACE_DEFAULT: Unknown colorspace
|
||||
* @CLUTTER_COLORSPACE_SRGB: Default sRGB colorspace
|
||||
* @CLUTTER_COLORSPACE_BT2020: BT2020 colorspace
|
||||
*
|
||||
@ -1010,7 +1010,7 @@ typedef enum
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
CLUTTER_COLORSPACE_UNKNOWN,
|
||||
CLUTTER_COLORSPACE_DEFAULT,
|
||||
CLUTTER_COLORSPACE_SRGB,
|
||||
CLUTTER_COLORSPACE_BT2020,
|
||||
} ClutterColorspace;
|
||||
|
@ -36,7 +36,7 @@ actor_color_state_default (void)
|
||||
color_state = clutter_actor_get_color_state (actor);
|
||||
colorspace = clutter_color_state_get_colorspace (color_state);
|
||||
|
||||
g_assert_cmpuint (colorspace, ==, CLUTTER_COLORSPACE_SRGB);
|
||||
g_assert_cmpuint (colorspace, ==, CLUTTER_COLORSPACE_DEFAULT);
|
||||
|
||||
clutter_actor_destroy (actor);
|
||||
}
|
||||
@ -114,7 +114,7 @@ actor_change_color_state_to_null (void)
|
||||
color_state = clutter_actor_get_color_state (actor);
|
||||
colorspace = clutter_color_state_get_colorspace (color_state);
|
||||
|
||||
g_assert_cmpuint (colorspace, ==, CLUTTER_COLORSPACE_SRGB);
|
||||
g_assert_cmpuint (colorspace, ==, CLUTTER_COLORSPACE_DEFAULT);
|
||||
|
||||
clutter_actor_destroy (actor);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user