kms/device: Add plane getter

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-10-10 01:41:52 +02:00 committed by Marge Bot
parent dd03ffa89d
commit d8279ba474
2 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,7 @@ meta_kms_device_get_crtcs (MetaKmsDevice *device)
return device->crtcs;
}
static GList *
GList *
meta_kms_device_get_planes (MetaKmsDevice *device)
{
return device->planes;

View File

@ -49,6 +49,8 @@ GList * meta_kms_device_get_connectors (MetaKmsDevice *device);
GList * meta_kms_device_get_crtcs (MetaKmsDevice *device);
GList * meta_kms_device_get_planes (MetaKmsDevice *device);
MetaKmsPlane * meta_kms_device_get_primary_plane_for (MetaKmsDevice *device,
MetaKmsCrtc *crtc);