[mutter] egl: Expose .._has_extensions_..() function
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] egl: Expose .._has_extensions_..() function
- Date: Fri, 6 Oct 2017 18:25:21 +0000 (UTC)
commit b32cccddf9a1a3a365a6d034beedd0ca1c8f53d6
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Jul 24 15:56:59 2017 +0800
egl: Expose .._has_extensions_..() function
It will be used by e.g. a future GLES helper unit needing similar
functionality.
https://bugzilla.gnome.org/show_bug.cgi?id=785381
src/backends/meta-egl.c | 28 +++++++++++++++-------------
src/backends/meta-egl.h | 6 ++++++
2 files changed, 21 insertions(+), 13 deletions(-)
---
diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c
index abf38c8..3031e9b 100644
--- a/src/backends/meta-egl.c
+++ b/src/backends/meta-egl.c
@@ -160,11 +160,11 @@ set_egl_error (GError **error)
error_str);
}
-static gboolean
-extensions_string_has_extensions_valist (const char *extensions_str,
- char ***missing_extensions,
- char *first_extension,
- va_list var_args)
+gboolean
+meta_extensions_string_has_extensions_valist (const char *extensions_str,
+ char ***missing_extensions,
+ char *first_extension,
+ va_list var_args)
{
char **extensions;
char *extension;
@@ -222,10 +222,11 @@ meta_egl_has_extensions (MetaEgl *egl,
}
va_start (var_args, first_extension);
- has_extensions = extensions_string_has_extensions_valist (extensions_str,
- missing_extensions,
- first_extension,
- var_args);
+ has_extensions =
+ meta_extensions_string_has_extensions_valist (extensions_str,
+ missing_extensions,
+ first_extension,
+ var_args);
va_end (var_args);
return has_extensions;
@@ -479,10 +480,11 @@ meta_egl_egl_device_has_extensions (MetaEgl *egl,
}
va_start (var_args, first_extension);
- has_extensions = extensions_string_has_extensions_valist (extensions_str,
- missing_extensions,
- first_extension,
- var_args);
+ has_extensions =
+ meta_extensions_string_has_extensions_valist (extensions_str,
+ missing_extensions,
+ first_extension,
+ var_args);
va_end (var_args);
return has_extensions;
diff --git a/src/backends/meta-egl.h b/src/backends/meta-egl.h
index 8726345..881ccb7 100644
--- a/src/backends/meta-egl.h
+++ b/src/backends/meta-egl.h
@@ -36,6 +36,12 @@ G_DECLARE_FINAL_TYPE (MetaEgl, meta_egl, META, EGL, GObject)
GQuark meta_egl_error_quark (void);
+gboolean
+meta_extensions_string_has_extensions_valist (const char *extensions_str,
+ char ***missing_extensions,
+ char *first_extension,
+ va_list var_args);
+
gboolean meta_egl_has_extensions (MetaEgl *egl,
EGLDisplay display,
char ***missing_extensions,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]