mirror of
https://github.com/brl/mutter.git
synced 2025-06-18 02:59:30 +00:00
output: Move configureable state to instance private
That is is_presentation, is_primary, is_underscanning and backlight. The first three are set during CRTC assignment as they are only valid when active. The other is set separately, as it is untied to monitor configuration. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1287
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
9186b6d6b0
commit
f71316c850
@ -85,14 +85,9 @@ struct _MetaOutput
|
||||
MetaOutput **possible_clones;
|
||||
unsigned int n_possible_clones;
|
||||
|
||||
int backlight;
|
||||
int backlight_min;
|
||||
int backlight_max;
|
||||
|
||||
gboolean is_primary;
|
||||
gboolean is_presentation;
|
||||
|
||||
gboolean is_underscanning;
|
||||
gboolean supports_underscanning;
|
||||
|
||||
gpointer driver_private;
|
||||
@ -121,8 +116,23 @@ MetaGpu * meta_output_get_gpu (MetaOutput *output);
|
||||
const char * meta_output_get_name (MetaOutput *output);
|
||||
|
||||
META_EXPORT_TEST
|
||||
void meta_output_assign_crtc (MetaOutput *output,
|
||||
MetaCrtc *crtc);
|
||||
gboolean meta_output_is_primary (MetaOutput *output);
|
||||
|
||||
META_EXPORT_TEST
|
||||
gboolean meta_output_is_presentation (MetaOutput *output);
|
||||
|
||||
META_EXPORT_TEST
|
||||
gboolean meta_output_is_underscanning (MetaOutput *output);
|
||||
|
||||
void meta_output_set_backlight (MetaOutput *output,
|
||||
int backlight);
|
||||
|
||||
int meta_output_get_backlight (MetaOutput *output);
|
||||
|
||||
META_EXPORT_TEST
|
||||
void meta_output_assign_crtc (MetaOutput *output,
|
||||
MetaCrtc *crtc,
|
||||
const MetaOutputInfo *output_info);
|
||||
|
||||
META_EXPORT_TEST
|
||||
void meta_output_unassign_crtc (MetaOutput *output);
|
||||
|
Reference in New Issue
Block a user