kms-update: Add function meta_kms_update_set_max_bpc
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2412>
This commit is contained in:
parent
33ee155630
commit
2b561a369c
@ -82,6 +82,11 @@ typedef struct _MetaKmsConnectorUpdate
|
||||
gboolean has_update;
|
||||
gboolean is_enabled;
|
||||
} privacy_screen;
|
||||
|
||||
struct {
|
||||
gboolean has_update;
|
||||
uint64_t value;
|
||||
} max_bpc;
|
||||
} MetaKmsConnectorUpdate;
|
||||
|
||||
typedef struct _MetaKmsPageFlipListener
|
||||
|
@ -356,6 +356,20 @@ meta_kms_update_set_privacy_screen (MetaKmsUpdate *update,
|
||||
connector_update->privacy_screen.is_enabled = enabled;
|
||||
}
|
||||
|
||||
void
|
||||
meta_kms_update_set_max_bpc (MetaKmsUpdate *update,
|
||||
MetaKmsConnector *connector,
|
||||
uint64_t max_bpc)
|
||||
{
|
||||
MetaKmsConnectorUpdate *connector_update;
|
||||
|
||||
g_assert (meta_kms_connector_get_device (connector) == update->device);
|
||||
|
||||
connector_update = ensure_connector_update (update, connector);
|
||||
connector_update->max_bpc.value = max_bpc;
|
||||
connector_update->max_bpc.has_update = TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
meta_kms_crtc_gamma_free (MetaKmsCrtcGamma *gamma)
|
||||
{
|
||||
|
@ -107,6 +107,10 @@ void meta_kms_update_set_privacy_screen (MetaKmsUpdate *update,
|
||||
MetaKmsConnector *connector,
|
||||
gboolean enabled);
|
||||
|
||||
void meta_kms_update_set_max_bpc (MetaKmsUpdate *update,
|
||||
MetaKmsConnector *connector,
|
||||
uint64_t max_bpc);
|
||||
|
||||
META_EXPORT_TEST
|
||||
void meta_kms_update_set_power_save (MetaKmsUpdate *update);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user