summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2014-03-05 01:33:26 +0000
committerRobert Bragg <robert.bragg@intel.com>2014-03-20 17:34:04 +0000
commitdca992a160977316d867996053c646bb5dace1e5 (patch)
treece899e7d1375e7aa04283fd685855ad70d9fe5e1
parent2beb7c40e01f776cc7396559cd213ceeb445bc36 (diff)
downloadcogl-dca992a160977316d867996053c646bb5dace1e5.tar.gz
egl: remove NativeWindowType/NativeDisplayType defines
This ensures we use EGLNativeWindowType and EGLNativeDisplayType everywhere instead. The previous names come from EGL 1.2 but it seems reasonable to require more recent EGL versions. If someone wanted to add compatibility for EGL 1.2 later it would be straightforward to define the new names to the old. Reviewed-by: Neil Roberts <neil@linux.intel.com>
-rw-r--r--cogl/cogl-defines.h.win32.in2
-rw-r--r--cogl/cogl-defines.h.win32_SDL.in2
-rw-r--r--cogl/cogl-egl.h3
-rw-r--r--cogl/winsys/cogl-winsys-egl-android.c2
-rw-r--r--cogl/winsys/cogl-winsys-egl-gdl.c2
-rw-r--r--cogl/winsys/cogl-winsys-egl-kms.c6
-rw-r--r--cogl/winsys/cogl-winsys-egl-null.c2
-rw-r--r--cogl/winsys/cogl-winsys-egl-x11.c6
8 files changed, 9 insertions, 16 deletions
diff --git a/cogl/cogl-defines.h.win32.in b/cogl/cogl-defines.h.win32.in
index 6fc38ada..b484fd24 100644
--- a/cogl/cogl-defines.h.win32.in
+++ b/cogl/cogl-defines.h.win32.in
@@ -53,8 +53,6 @@ G_BEGIN_DECLS
#include <GLES/egl.h>
#else
#include <EGL/egl.h>
-#define NativeDisplayType EGLNativeDisplayType
-#define NativeWindowType EGLNativeWindowType
#endif
#endif
diff --git a/cogl/cogl-defines.h.win32_SDL.in b/cogl/cogl-defines.h.win32_SDL.in
index e9ad2bfc..acd246b2 100644
--- a/cogl/cogl-defines.h.win32_SDL.in
+++ b/cogl/cogl-defines.h.win32_SDL.in
@@ -54,8 +54,6 @@ G_BEGIN_DECLS
#include <GLES/egl.h>
#else
#include <EGL/egl.h>
-#define NativeDisplayType EGLNativeDisplayType
-#define NativeWindowType EGLNativeWindowType
#endif
#endif
diff --git a/cogl/cogl-egl.h b/cogl/cogl-egl.h
index 8eaba111..96abb785 100644
--- a/cogl/cogl-egl.h
+++ b/cogl/cogl-egl.h
@@ -37,9 +37,6 @@
COGL_BEGIN_DECLS
-#define NativeDisplayType EGLNativeDisplayType
-#define NativeWindowType EGLNativeWindowType
-
#ifndef GL_OES_EGL_image
#define GLeglImageOES void *
#endif
diff --git a/cogl/winsys/cogl-winsys-egl-android.c b/cogl/winsys/cogl-winsys-egl-android.c
index eae63acd..cf4a133e 100644
--- a/cogl/winsys/cogl-winsys-egl-android.c
+++ b/cogl/winsys/cogl-winsys-egl-android.c
@@ -130,7 +130,7 @@ _cogl_winsys_egl_context_created (CoglDisplay *display,
egl_display->egl_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_display->egl_config,
- (NativeWindowType) android_native_window,
+ (EGLNativeWindowType) android_native_window,
NULL);
if (egl_display->egl_surface == EGL_NO_SURFACE)
{
diff --git a/cogl/winsys/cogl-winsys-egl-gdl.c b/cogl/winsys/cogl-winsys-egl-gdl.c
index 75c87eeb..e5a07654 100644
--- a/cogl/winsys/cogl-winsys-egl-gdl.c
+++ b/cogl/winsys/cogl-winsys-egl-gdl.c
@@ -137,7 +137,7 @@ _cogl_winsys_egl_context_created (CoglDisplay *display,
egl_display->egl_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_display->egl_config,
- (NativeWindowType) display->gdl_plane,
+ (EGLNativeWindowType) display->gdl_plane,
NULL);
if (egl_display->egl_surface == EGL_NO_SURFACE)
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index a3649e75..8c4176e9 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -790,7 +790,7 @@ _cogl_winsys_egl_context_created (CoglDisplay *display,
egl_display->dummy_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_display->egl_config,
- (NativeWindowType) kms_display->dummy_gbm_surface,
+ (EGLNativeWindowType) kms_display->dummy_gbm_surface,
NULL);
if (egl_display->dummy_surface == EGL_NO_SURFACE)
{
@@ -986,7 +986,7 @@ _cogl_winsys_onscreen_init (CoglOnscreen *onscreen,
egl_onscreen->egl_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_display->egl_config,
- (NativeWindowType) kms_onscreen->surface,
+ (EGLNativeWindowType) kms_onscreen->surface,
NULL);
if (egl_onscreen->egl_surface == EGL_NO_SURFACE)
{
@@ -1172,7 +1172,7 @@ cogl_kms_display_set_layout (CoglDisplay *display,
new_egl_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_display->egl_config,
- (NativeWindowType) new_surface,
+ (EGLNativeWindowType) new_surface,
NULL);
if (new_egl_surface == EGL_NO_SURFACE)
{
diff --git a/cogl/winsys/cogl-winsys-egl-null.c b/cogl/winsys/cogl-winsys-egl-null.c
index d2548992..962d6d1e 100644
--- a/cogl/winsys/cogl-winsys-egl-null.c
+++ b/cogl/winsys/cogl-winsys-egl-null.c
@@ -96,7 +96,7 @@ _cogl_winsys_egl_context_created (CoglDisplay *display,
egl_display->egl_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_display->egl_config,
- (NativeWindowType) NULL,
+ (EGLNativeWindowType) NULL,
NULL);
if (egl_display->egl_surface == EGL_NO_SURFACE)
{
diff --git a/cogl/winsys/cogl-winsys-egl-x11.c b/cogl/winsys/cogl-winsys-egl-x11.c
index 6236b3b4..5d2a858e 100644
--- a/cogl/winsys/cogl-winsys-egl-x11.c
+++ b/cogl/winsys/cogl-winsys-egl-x11.c
@@ -278,7 +278,7 @@ _cogl_winsys_renderer_connect (CoglRenderer *renderer,
goto error;
egl_renderer->edpy =
- eglGetDisplay ((NativeDisplayType) xlib_renderer->xdpy);
+ eglGetDisplay ((EGLNativeDisplayType) xlib_renderer->xdpy);
if (!_cogl_winsys_egl_renderer_connect_common (renderer, error))
goto error;
@@ -481,7 +481,7 @@ _cogl_winsys_egl_onscreen_init (CoglOnscreen *onscreen,
egl_onscreen->egl_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_config,
- (NativeWindowType) xlib_onscreen->xwin,
+ (EGLNativeWindowType) xlib_onscreen->xwin,
NULL);
return TRUE;
@@ -629,7 +629,7 @@ _cogl_winsys_egl_context_created (CoglDisplay *display,
egl_display->dummy_surface =
eglCreateWindowSurface (egl_renderer->edpy,
egl_display->egl_config,
- (NativeWindowType) xlib_display->dummy_xwin,
+ (EGLNativeWindowType) xlib_display->dummy_xwin,
NULL);
if (egl_display->dummy_surface == EGL_NO_SURFACE)