[Mesa-dev] [RFC 3/7] eglplatform.h: Introduce EGL_USE_PLATFORM_APPLE_KHR
Emil Velikov
emil.l.velikov at gmail.com
Thu Sep 22 08:38:08 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
---
XXX: This is the upstream/Khronos definition of it, although I'm not
perfectly sure if/how many users depend on it.
XXX: Worth folding with the original commit which introduces the EGL_USE
PLATFORM... lot ?
---
include/EGL/eglplatform.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index bb8bb95..16765fb 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -76,6 +76,12 @@ typedef struct ANativeWindow* EGLNativeWindowType;
typedef struct egl_native_pixmap_t* EGLNativePixmapType;
typedef void* EGLNativeDisplayType;
+#elif defined(EGL_USE_PLATFORM_APPLE_KHR)
+
+typedef int EGLNativeDisplayType;
+typedef void *EGLNativeWindowType;
+typedef void *EGLNativePixmapType;
+
#elif defined(EGL_USE_PLATFORM_GBM_KHR) // XXX: Name GBM vs DRM vs other
typedef struct gbm_device *EGLNativeDisplayType;
--
2.9.3
More information about the mesa-dev
mailing list