egl: add _EGL_PLATFORM_ANDROID

This is Android Gingerbread platform.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Chad Versace <chad@chad-versace.us>
This commit is contained in:
Chia-I Wu 2010-10-11 16:09:52 +08:00 committed by Chia-I Wu
parent 504f92c739
commit b0945c14df
3 changed files with 12 additions and 1 deletions

View File

@ -90,6 +90,15 @@ typedef struct gbm_device *EGLNativeDisplayType;
typedef struct gbm_bo *EGLNativePixmapType; typedef struct gbm_bo *EGLNativePixmapType;
typedef void *EGLNativeWindowType; typedef void *EGLNativeWindowType;
#elif defined(ANDROID) /* Android */
struct ANativeWindow;
struct egl_native_pixmap_t;
typedef struct ANativeWindow *EGLNativeWindowType;
typedef struct egl_native_pixmap_t *EGLNativePixmapType;
typedef void *EGLNativeDisplayType;
#elif defined(__unix__) || defined(__unix) #elif defined(__unix__) || defined(__unix)
#ifdef MESA_EGL_NO_X11_HEADERS #ifdef MESA_EGL_NO_X11_HEADERS

View File

@ -72,7 +72,8 @@ static const struct {
{ _EGL_PLATFORM_X11, "x11" }, { _EGL_PLATFORM_X11, "x11" },
{ _EGL_PLATFORM_WAYLAND, "wayland" }, { _EGL_PLATFORM_WAYLAND, "wayland" },
{ _EGL_PLATFORM_DRM, "drm" }, { _EGL_PLATFORM_DRM, "drm" },
{ _EGL_PLATFORM_FBDEV, "fbdev" } { _EGL_PLATFORM_FBDEV, "fbdev" },
{ _EGL_PLATFORM_ANDROID, "android" }
}; };

View File

@ -44,6 +44,7 @@ enum _egl_platform_type {
_EGL_PLATFORM_WAYLAND, _EGL_PLATFORM_WAYLAND,
_EGL_PLATFORM_DRM, _EGL_PLATFORM_DRM,
_EGL_PLATFORM_FBDEV, _EGL_PLATFORM_FBDEV,
_EGL_PLATFORM_ANDROID,
_EGL_NUM_PLATFORMS, _EGL_NUM_PLATFORMS,
_EGL_INVALID_PLATFORM = -1 _EGL_INVALID_PLATFORM = -1