[mutter/halfline/wip/kms-cleanups: 7/9] native-renderer: add way to get modesetting fd
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/halfline/wip/kms-cleanups: 7/9] native-renderer: add way to get modesetting fd
- Date: Thu, 10 Mar 2016 21:12:38 +0000 (UTC)
commit 31726b5db92f62ac1716a07a770d27501fb67d75
Author: Ray Strode <rstrode redhat com>
Date: Fri Jan 8 14:46:06 2016 -0500
native-renderer: add way to get modesetting fd
We get the kms fd ourselves, and then tell cogl about it.
Later whenever we need the kms fd we then ask cogl what it
is. It would be good to get rid of cogl as a middle man.
This commit lays the ground work toward that end by adding
api to access kms fd set up by the native renderer.
src/backends/native/meta-native-renderer.c | 6 ++++++
src/backends/native/meta-native-renderer.h | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/native/meta-native-renderer.c b/src/backends/native/meta-native-renderer.c
index 609d513..7e6db68 100644
--- a/src/backends/native/meta-native-renderer.c
+++ b/src/backends/native/meta-native-renderer.c
@@ -185,6 +185,12 @@ meta_native_renderer_unpause (MetaNativeRenderer *self)
meta_cursor_renderer_native_force_update (META_CURSOR_RENDERER_NATIVE (renderer));
}
+int
+meta_native_renderer_get_modesetting_fd (MetaNativeRenderer *self)
+{
+ return self->modesetting_fd;
+}
+
gboolean
meta_native_renderer_start (MetaNativeRenderer *self,
GError **error)
diff --git a/src/backends/native/meta-native-renderer.h b/src/backends/native/meta-native-renderer.h
index 1d5e4e8..79d7630 100644
--- a/src/backends/native/meta-native-renderer.h
+++ b/src/backends/native/meta-native-renderer.h
@@ -41,4 +41,6 @@ gboolean meta_native_renderer_start (MetaNativeRenderer *self,
void meta_native_renderer_pause (MetaNativeRenderer *self);
void meta_native_renderer_unpause (MetaNativeRenderer *self);
+int meta_native_renderer_get_modesetting_fd (MetaNativeRenderer *self);
+
#endif /* META_NATIVE_RENDERER_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]