From ee60ab1e89eb508333cc4a691728e44580ad77c1 Mon Sep 17 00:00:00 2001 From: Pablo Ceballos Date: Tue, 29 Mar 2016 16:53:23 -0700 Subject: [PATCH] NDK EGL: Updates to android-24 Change-Id: Icc59b13372198a264be8faa9eb60875faab4c78a --- .../arch-arm/symbols/libEGL.so.functions.txt | 1 + .../symbols/libEGL.so.functions.txt | 1 + .../arch-mips/symbols/libEGL.so.functions.txt | 1 + .../symbols/libEGL.so.functions.txt | 1 + .../arch-x86/symbols/libEGL.so.functions.txt | 1 + .../symbols/libEGL.so.functions.txt | 1 + ndk/platforms/android-24/include/EGL/eglext.h | 19 +++++++++++++++++++ 7 files changed, 25 insertions(+) diff --git a/ndk/platforms/android-24/arch-arm/symbols/libEGL.so.functions.txt b/ndk/platforms/android-24/arch-arm/symbols/libEGL.so.functions.txt index 88fa0e585..9ad55b6e5 100644 --- a/ndk/platforms/android-24/arch-arm/symbols/libEGL.so.functions.txt +++ b/ndk/platforms/android-24/arch-arm/symbols/libEGL.so.functions.txt @@ -5,6 +5,7 @@ eglClientWaitSyncKHR eglCopyBuffers eglCreateContext eglCreateImageKHR +eglCreateNativeClientBufferANDROID eglCreatePbufferFromClientBuffer eglCreatePbufferSurface eglCreatePixmapSurface diff --git a/ndk/platforms/android-24/arch-arm64/symbols/libEGL.so.functions.txt b/ndk/platforms/android-24/arch-arm64/symbols/libEGL.so.functions.txt index 88fa0e585..9ad55b6e5 100644 --- a/ndk/platforms/android-24/arch-arm64/symbols/libEGL.so.functions.txt +++ b/ndk/platforms/android-24/arch-arm64/symbols/libEGL.so.functions.txt @@ -5,6 +5,7 @@ eglClientWaitSyncKHR eglCopyBuffers eglCreateContext eglCreateImageKHR +eglCreateNativeClientBufferANDROID eglCreatePbufferFromClientBuffer eglCreatePbufferSurface eglCreatePixmapSurface diff --git a/ndk/platforms/android-24/arch-mips/symbols/libEGL.so.functions.txt b/ndk/platforms/android-24/arch-mips/symbols/libEGL.so.functions.txt index 88fa0e585..9ad55b6e5 100644 --- a/ndk/platforms/android-24/arch-mips/symbols/libEGL.so.functions.txt +++ b/ndk/platforms/android-24/arch-mips/symbols/libEGL.so.functions.txt @@ -5,6 +5,7 @@ eglClientWaitSyncKHR eglCopyBuffers eglCreateContext eglCreateImageKHR +eglCreateNativeClientBufferANDROID eglCreatePbufferFromClientBuffer eglCreatePbufferSurface eglCreatePixmapSurface diff --git a/ndk/platforms/android-24/arch-mips64/symbols/libEGL.so.functions.txt b/ndk/platforms/android-24/arch-mips64/symbols/libEGL.so.functions.txt index 88fa0e585..9ad55b6e5 100644 --- a/ndk/platforms/android-24/arch-mips64/symbols/libEGL.so.functions.txt +++ b/ndk/platforms/android-24/arch-mips64/symbols/libEGL.so.functions.txt @@ -5,6 +5,7 @@ eglClientWaitSyncKHR eglCopyBuffers eglCreateContext eglCreateImageKHR +eglCreateNativeClientBufferANDROID eglCreatePbufferFromClientBuffer eglCreatePbufferSurface eglCreatePixmapSurface diff --git a/ndk/platforms/android-24/arch-x86/symbols/libEGL.so.functions.txt b/ndk/platforms/android-24/arch-x86/symbols/libEGL.so.functions.txt index 88fa0e585..9ad55b6e5 100644 --- a/ndk/platforms/android-24/arch-x86/symbols/libEGL.so.functions.txt +++ b/ndk/platforms/android-24/arch-x86/symbols/libEGL.so.functions.txt @@ -5,6 +5,7 @@ eglClientWaitSyncKHR eglCopyBuffers eglCreateContext eglCreateImageKHR +eglCreateNativeClientBufferANDROID eglCreatePbufferFromClientBuffer eglCreatePbufferSurface eglCreatePixmapSurface diff --git a/ndk/platforms/android-24/arch-x86_64/symbols/libEGL.so.functions.txt b/ndk/platforms/android-24/arch-x86_64/symbols/libEGL.so.functions.txt index 88fa0e585..9ad55b6e5 100644 --- a/ndk/platforms/android-24/arch-x86_64/symbols/libEGL.so.functions.txt +++ b/ndk/platforms/android-24/arch-x86_64/symbols/libEGL.so.functions.txt @@ -5,6 +5,7 @@ eglClientWaitSyncKHR eglCopyBuffers eglCreateContext eglCreateImageKHR +eglCreateNativeClientBufferANDROID eglCreatePbufferFromClientBuffer eglCreatePbufferSurface eglCreatePixmapSurface diff --git a/ndk/platforms/android-24/include/EGL/eglext.h b/ndk/platforms/android-24/include/EGL/eglext.h index b2abdb102..5d838e63b 100644 --- a/ndk/platforms/android-24/include/EGL/eglext.h +++ b/ndk/platforms/android-24/include/EGL/eglext.h @@ -598,6 +598,25 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROID) (EGLDisplay dpy, #endif #endif +#ifndef EGL_ANDROID_create_native_client_buffer +#define EGL_ANDROID_create_native_client_buffer 1 +#define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143 +#define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001 +#define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_ANDROID 0x00000002 +#define EGL_NATIVE_BUFFER_USAGE_TEXTURE_ANDROID 0x00000004 +#ifdef EGL_EGLEXT_PROTOTYPES +EGLAPI EGLClientBuffer eglCreateNativeClientBufferANDROID (const EGLint *attrib_list); +#else +typedef EGLAPI EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROID) (const EGLint *attrib_list); +#endif +#endif + +#ifndef EGL_ANDROID_front_buffer_auto_refresh +#define EGL_ANDROID_front_buffer_auto_refresh 1 +#define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C +#endif + + #ifdef __cplusplus } #endif