kms/impl: Manage a list of impl devices

Accessing the device list directly from MetaKms might not be safe if we
introduce threads, so keep a list completely within the impl context.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl
2020-07-16 23:29:31 +02:00
committed by Marge Bot
parent eb78b62515
commit a8d724d058
4 changed files with 36 additions and 0 deletions

View File

@ -270,6 +270,8 @@ create_impl_device_in_impl (MetaKmsImpl *impl,
if (!impl_device)
return FALSE;
meta_kms_impl_add_impl_device (impl, impl_device);
data->out_impl_device = impl_device;
data->out_crtcs = meta_kms_impl_device_copy_crtcs (impl_device);
data->out_connectors = meta_kms_impl_device_copy_connectors (impl_device);