monitor-manager: Move gamma LUT manipulation API to MetaCrtc
In practice, for KMS backend CRTC's, we cache the gamma in the monitor manager instance, so that anyone asking gets the pending or up to date value, instead of the potentially not up to date value if one queries after gamma was scheduled to be updated, and before it was actually updated. While this is true, lets still move the API to the MetaCrtc type; the backend specific implementation can still look up cached values from the MetaMonitorManager, but for users, it becomes less cumbersome to not have to go via the monitor manager. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2165>
This commit is contained in:
@ -182,13 +182,6 @@ struct _MetaMonitorManager
|
||||
* @change_backlight: Changes the backlight intensity to the given value (in
|
||||
* percent).
|
||||
*
|
||||
* @get_crtc_gamma: Queries and returns the gamma rampQueries and returns the
|
||||
* gamma ramp.
|
||||
*
|
||||
* @set_crtc_gamma: Sets custom display LUT (look up table) for each primary
|
||||
* color. Each table is indexed by a value that represents input intensity,
|
||||
* and yields a value that represents output intensity.
|
||||
*
|
||||
* @tiled_monitor_added: Should be called by a #MetaMonitor when it is created.
|
||||
*
|
||||
* @tiled_monitor_removed: Should be called by a #MetaMonitor when it is
|
||||
@ -230,19 +223,6 @@ struct _MetaMonitorManagerClass
|
||||
MetaOutput *output,
|
||||
int backlight);
|
||||
|
||||
void (* get_crtc_gamma) (MetaMonitorManager *manager,
|
||||
MetaCrtc *crtc,
|
||||
size_t *size,
|
||||
unsigned short **red,
|
||||
unsigned short **green,
|
||||
unsigned short **blue);
|
||||
void (* set_crtc_gamma) (MetaMonitorManager *manager,
|
||||
MetaCrtc *crtc,
|
||||
size_t size,
|
||||
unsigned short *red,
|
||||
unsigned short *green,
|
||||
unsigned short *blue);
|
||||
|
||||
void (* tiled_monitor_added) (MetaMonitorManager *manager,
|
||||
MetaMonitor *monitor);
|
||||
|
||||
@ -452,18 +432,4 @@ GList * meta_monitor_manager_get_virtual_monitors (MetaMonitorManager *manager);
|
||||
|
||||
void meta_monitor_manager_maybe_emit_privacy_screen_change (MetaMonitorManager *manager);
|
||||
|
||||
void meta_monitor_manager_get_crtc_gamma (MetaMonitorManager *manager,
|
||||
MetaCrtc *crtc,
|
||||
size_t *size,
|
||||
unsigned short **red,
|
||||
unsigned short **green,
|
||||
unsigned short **blue);
|
||||
|
||||
void meta_monitor_manager_set_crtc_gamma (MetaMonitorManager *manager,
|
||||
MetaCrtc *crtc,
|
||||
size_t size,
|
||||
unsigned short *red,
|
||||
unsigned short *green,
|
||||
unsigned short *blue);
|
||||
|
||||
#endif /* META_MONITOR_MANAGER_PRIVATE_H */
|
||||
|
Reference in New Issue
Block a user