summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-12-13 16:23:25 +0000
committerNeil Roberts <neil@linux.intel.com>2011-12-14 16:40:26 +0000
commitff5bfc4a869b5f4afc0ac90e7cf39f613f348441 (patch)
tree057d5ad6466e58ba7013213d9841e1c6d8b7e956
parent3a4dce0c53dbcdc1b1ff0227876593c5dfacaaa8 (diff)
downloadcogl-ff5bfc4a869b5f4afc0ac90e7cf39f613f348441.tar.gz
Rename the EGL_X11 winsys to EGL_XLIB
Eventually we might want to have an XCB-based EGL winsys. We already have xlib-specific API in CoglRenderer (eg, to set a foreign display) so the application needs to be able to specifically select between XCB and XLIB. This also removes the POWERVR part while renaming COGL_HAS_EGL_PLATFORM_POWERVR_X11_SUPPORT to COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT because the winsys is equally applicable to Mesa. Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r--cogl/Makefile.am2
-rw-r--r--cogl/cogl-renderer.c6
-rw-r--r--cogl/cogl-renderer.h9
-rw-r--r--cogl/winsys/cogl-winsys-egl-x11-private.h2
-rw-r--r--cogl/winsys/cogl-winsys-egl-x11.c6
-rw-r--r--configure.ac4
6 files changed, 17 insertions, 12 deletions
diff --git a/cogl/Makefile.am b/cogl/Makefile.am
index 7deea825..2589e784 100644
--- a/cogl/Makefile.am
+++ b/cogl/Makefile.am
@@ -384,7 +384,7 @@ cogl_sources_c += \
$(srcdir)/winsys/cogl-winsys-egl-kms.c \
$(srcdir)/winsys/cogl-winsys-egl-kms-private.h
endif
-if SUPPORT_EGL_PLATFORM_POWERVR_X11
+if SUPPORT_EGL_PLATFORM_XLIB
cogl_sources_c += \
$(srcdir)/winsys/cogl-winsys-egl-x11.c \
$(srcdir)/winsys/cogl-winsys-egl-x11-private.h
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c
index 4157ac43..5e5ae044 100644
--- a/cogl/cogl-renderer.c
+++ b/cogl/cogl-renderer.c
@@ -45,7 +45,7 @@
#include "cogl-winsys-stub-private.h"
#include "cogl-config-private.h"
-#ifdef COGL_HAS_EGL_PLATFORM_POWERVR_X11_SUPPORT
+#ifdef COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT
#include "cogl-winsys-egl-x11-private.h"
#endif
#ifdef COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
@@ -82,8 +82,8 @@ static CoglWinsysVtableGetter _cogl_winsys_vtable_getters[] =
#ifdef COGL_HAS_GLX_SUPPORT
_cogl_winsys_glx_get_vtable,
#endif
-#ifdef COGL_HAS_EGL_PLATFORM_POWERVR_X11_SUPPORT
- _cogl_winsys_egl_x11_get_vtable,
+#ifdef COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT
+ _cogl_winsys_egl_xlib_get_vtable,
#endif
#ifdef COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
_cogl_winsys_egl_wayland_get_vtable,
diff --git a/cogl/cogl-renderer.h b/cogl/cogl-renderer.h
index 9f225f23..e621b492 100644
--- a/cogl/cogl-renderer.h
+++ b/cogl/cogl-renderer.h
@@ -64,7 +64,12 @@ cogl_renderer_new (void);
* @COGL_WINSYS_ID_ANY: Implies no preference for which backend is used
* @COGL_WINSYS_ID_STUB: Use the no-op stub backend
* @COGL_WINSYS_ID_GLX: Use the GLX window system binding API
- * @COGL_WINSYS_ID_EGL: Use the Khronos EGL window system binding API
+ * @COGL_WINSYS_ID_EGL_XLIB: Use EGL with the X window system via XLib
+ * @COGL_WINSYS_ID_EGL_NULL: Use EGL with the PowerVR NULL window system
+ * @COGL_WINSYS_ID_EGL_GDL: Use EGL with the GDL platform
+ * @COGL_WINSYS_ID_EGL_WAYLAND: Use EGL with the Wayland window system
+ * @COGL_WINSYS_ID_EGL_KMS: Use EGL with the KMS platform
+ * @COGL_WINSYS_ID_EGL_ANDROID: Use EGL with the Android platform
* @COGL_WINSYS_ID_WGL: Use the Microsoft Windows WGL binding API
*
* Identifies specific window system backends that Cogl supports.
@@ -77,7 +82,7 @@ typedef enum
COGL_WINSYS_ID_ANY,
COGL_WINSYS_ID_STUB,
COGL_WINSYS_ID_GLX,
- COGL_WINSYS_ID_EGL_X11,
+ COGL_WINSYS_ID_EGL_XLIB,
COGL_WINSYS_ID_EGL_NULL,
COGL_WINSYS_ID_EGL_GDL,
COGL_WINSYS_ID_EGL_WAYLAND,
diff --git a/cogl/winsys/cogl-winsys-egl-x11-private.h b/cogl/winsys/cogl-winsys-egl-x11-private.h
index 8438a9fb..ea2a9cd9 100644
--- a/cogl/winsys/cogl-winsys-egl-x11-private.h
+++ b/cogl/winsys/cogl-winsys-egl-x11-private.h
@@ -27,6 +27,6 @@
#include "cogl-winsys-private.h"
const CoglWinsysVtable *
-_cogl_winsys_egl_x11_get_vtable (void);
+_cogl_winsys_egl_xlib_get_vtable (void);
#endif /* __COGL_WINSYS_EGL_X11_PRIVATE_H */
diff --git a/cogl/winsys/cogl-winsys-egl-x11.c b/cogl/winsys/cogl-winsys-egl-x11.c
index 3a646e95..b66a6d87 100644
--- a/cogl/winsys/cogl-winsys-egl-x11.c
+++ b/cogl/winsys/cogl-winsys-egl-x11.c
@@ -682,7 +682,7 @@ _cogl_winsys_egl_vtable =
};
const CoglWinsysVtable *
-_cogl_winsys_egl_x11_get_vtable (void)
+_cogl_winsys_egl_xlib_get_vtable (void)
{
static gboolean vtable_inited = FALSE;
static CoglWinsysVtable vtable;
@@ -694,8 +694,8 @@ _cogl_winsys_egl_x11_get_vtable (void)
vtable = *_cogl_winsys_egl_get_vtable ();
- vtable.id = COGL_WINSYS_ID_EGL_X11;
- vtable.name = "EGL_X11";
+ vtable.id = COGL_WINSYS_ID_EGL_XLIB;
+ vtable.name = "EGL_XLIB";
vtable.renderer_connect = _cogl_winsys_renderer_connect;
vtable.renderer_disconnect = _cogl_winsys_renderer_disconnect;
diff --git a/configure.ac b/configure.ac
index 08ed6365..9ce91ebb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -834,9 +834,9 @@ AS_IF([test "x$enable_xlib_egl_platform" = "xyes"],
NEED_XLIB=yes
EGL_PLATFORMS="$EGL_PLATFORMS xlib"
- COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_POWERVR_X11_SUPPORT"
+ COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT"
])
-AM_CONDITIONAL(SUPPORT_EGL_PLATFORM_POWERVR_X11,
+AM_CONDITIONAL(SUPPORT_EGL_PLATFORM_XLIB,
[test "x$enable_xlib_egl_platform" = "xyes"])
AS_IF([test "x$NEED_EGL" = "xyes" && test "x$EGL_CHECKED" != "xyes"],