monitor: Add API to check color transform support

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2164>
This commit is contained in:
Jonas Ådahl 2021-12-06 11:42:36 +01:00
parent 083b788c74
commit 7a242ff1a1
2 changed files with 11 additions and 0 deletions

View File

@ -353,6 +353,15 @@ meta_monitor_supports_underscanning (MetaMonitor *monitor)
return output_info->supports_underscanning;
}
gboolean
meta_monitor_supports_color_transform (MetaMonitor *monitor)
{
const MetaOutputInfo *output_info =
meta_monitor_get_main_output_info (monitor);
return output_info->supports_color_transform;
}
gboolean
meta_monitor_is_underscanning (MetaMonitor *monitor)
{

View File

@ -116,6 +116,8 @@ gboolean meta_monitor_is_primary (MetaMonitor *monitor);
gboolean meta_monitor_supports_underscanning (MetaMonitor *monitor);
gboolean meta_monitor_supports_color_transform (MetaMonitor *monitor);
gboolean meta_monitor_is_underscanning (MetaMonitor *monitor);
gboolean meta_monitor_get_max_bpc (MetaMonitor *monitor,