[mutter] kms/device: Add plane getter



commit d8279ba474247bb9a7955c1fb108689ebd58e6c8
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Sat Oct 10 01:41:52 2020 +0200

    kms/device: Add plane getter
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>

 src/backends/native/meta-kms-device.c | 2 +-
 src/backends/native/meta-kms-device.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/backends/native/meta-kms-device.c b/src/backends/native/meta-kms-device.c
index f1fe833df7..8587c3065c 100644
--- a/src/backends/native/meta-kms-device.c
+++ b/src/backends/native/meta-kms-device.c
@@ -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;
diff --git a/src/backends/native/meta-kms-device.h b/src/backends/native/meta-kms-device.h
index 0b7c10273c..682140ff88 100644
--- a/src/backends/native/meta-kms-device.h
+++ b/src/backends/native/meta-kms-device.h
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]