Add wayland specs to eglext.h 74/54474/1 accepted/tizen/mobile/20151223.053234 accepted/tizen/tv/20151223.053402 submit/tizen_mobile/20151222.091330 submit/tizen_tv/20151222.090910
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Mon, 14 Dec 2015 05:36:16 +0000 (14:36 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 15 Dec 2015 11:24:26 +0000 (20:24 +0900)
Change-Id: I1d997f51b299d53e6b0444877953c6fc3794abb1

include_KHR/EGL/eglext.h

index 860d9fb..027b2ed 100644 (file)
@@ -798,7 +798,7 @@ EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
 #endif /* EGL_TIZEN_image_native_surface */
 
 /******************************************************************************/
-/* 20140709-sw815.ha: SEC proprietary specs                                   */
+/*                   SEC proprietary specs                                    */
 #ifndef EGL_SEC_client_pixmap
 #define EGL_SEC_client_pixmap 1
 #define EGL_CLINET_MEM_PIXMAP_SEC              0x3200 /* eglCreateClientPixmapFromClientBufferSEC buftype */
@@ -839,6 +839,44 @@ EGLAPI EGLBoolean EGLAPIENTRY eglGetImageAttribSEC (EGLDisplay dpy, EGLImageKHR
 #endif /*EGL_ANDROID_PIXMAP_image
 /******************************************************************************/
 
+/******************************************************************************/
+/*                            WAYLAND specs                                   */
+#ifndef EGL_WL_bind_wayland_display
+#define EGL_WL_bind_wayland_display 1
+
+#define EGL_WAYLAND_BUFFER_WL          0x31D5 /* eglCreateImageKHR target */
+#define EGL_WAYLAND_PLANE_WL           0x31D6 /* eglCreateImageKHR target */
+
+#define EGL_WAYLAND_Y_INVERTED_WL      0x31DB /* eglQueryWaylandBufferWL attribute */
+
+#define EGL_TEXTURE_Y_U_V_WL            0x31D7
+#define EGL_TEXTURE_Y_UV_WL             0x31D8
+#define EGL_TEXTURE_Y_XUXV_WL           0x31D9
+
+struct wl_display;
+struct wl_resource;
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
+EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
+#endif
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
+
+#endif
+
+#ifndef EGL_WL_create_wayland_buffer_from_image
+#define EGL_WL_create_wayland_buffer_from_image 1
+
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI struct wl_buffer * EGLAPIENTRY eglCreateWaylandBufferFromImageWL(EGLDisplay dpy, EGLImageKHR image);
+#endif
+typedef struct wl_buffer * (EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL) (EGLDisplay dpy, EGLImageKHR image);
+
+#endif
+/******************************************************************************/
+
 #ifdef __cplusplus
 }
 #endif