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 has_update;
|
||||||
gboolean is_enabled;
|
gboolean is_enabled;
|
||||||
} privacy_screen;
|
} privacy_screen;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
gboolean has_update;
|
||||||
|
uint64_t value;
|
||||||
|
} max_bpc;
|
||||||
} MetaKmsConnectorUpdate;
|
} MetaKmsConnectorUpdate;
|
||||||
|
|
||||||
typedef struct _MetaKmsPageFlipListener
|
typedef struct _MetaKmsPageFlipListener
|
||||||
|
@ -356,6 +356,20 @@ meta_kms_update_set_privacy_screen (MetaKmsUpdate *update,
|
|||||||
connector_update->privacy_screen.is_enabled = enabled;
|
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
|
void
|
||||||
meta_kms_crtc_gamma_free (MetaKmsCrtcGamma *gamma)
|
meta_kms_crtc_gamma_free (MetaKmsCrtcGamma *gamma)
|
||||||
{
|
{
|
||||||
|
@ -107,6 +107,10 @@ void meta_kms_update_set_privacy_screen (MetaKmsUpdate *update,
|
|||||||
MetaKmsConnector *connector,
|
MetaKmsConnector *connector,
|
||||||
gboolean enabled);
|
gboolean enabled);
|
||||||
|
|
||||||
|
void meta_kms_update_set_max_bpc (MetaKmsUpdate *update,
|
||||||
|
MetaKmsConnector *connector,
|
||||||
|
uint64_t max_bpc);
|
||||||
|
|
||||||
META_EXPORT_TEST
|
META_EXPORT_TEST
|
||||||
void meta_kms_update_set_power_save (MetaKmsUpdate *update);
|
void meta_kms_update_set_power_save (MetaKmsUpdate *update);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user