summaryrefslogtreecommitdiff
path: root/opengl
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2016-11-30 10:20:29 -0800
committerRomain Guy <romainguy@google.com>2016-11-30 10:20:29 -0800
commit1f071dd8c39dc966ad18abab0528f72730a4af6a (patch)
tree13636509b31e6ee18b3769579b51f1915a3261d5 /opengl
parent512957482525918d0c79f02ea29af5e15a063268 (diff)
Deprecate eglCreatePixmapSurface
This function was never properly supported. It had partial support in our JNI layer in EGL10 but not implementation in EGL14. It has never been tested and it is unlikely that drivers support pixmap rendering. Bug: 11257511 Test: CtsGraphicsTestCases Change-Id: I209fff470c715cd97148a32b2f41ecf7e5283bab
Diffstat (limited to 'opengl')
-rw-r--r--opengl/java/android/opengl/EGL14.java1
-rw-r--r--opengl/java/javax/microedition/khronos/egl/EGL10.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/opengl/java/android/opengl/EGL14.java b/opengl/java/android/opengl/EGL14.java
index cf09c5865b98..53ec6c8980ef 100644
--- a/opengl/java/android/opengl/EGL14.java
+++ b/opengl/java/android/opengl/EGL14.java
@@ -284,6 +284,7 @@ public static final int EGL_CORE_NATIVE_ENGINE = 0x305B;
// C function EGLSurface eglCreatePixmapSurface ( EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list )
+ @Deprecated
public static native EGLSurface eglCreatePixmapSurface(
EGLDisplay dpy,
EGLConfig config,
diff --git a/opengl/java/javax/microedition/khronos/egl/EGL10.java b/opengl/java/javax/microedition/khronos/egl/EGL10.java
index cf58888effae..612d59c53e9f 100644
--- a/opengl/java/javax/microedition/khronos/egl/EGL10.java
+++ b/opengl/java/javax/microedition/khronos/egl/EGL10.java
@@ -98,6 +98,7 @@ public interface EGL10 extends EGL {
boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap);
EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[] attrib_list);
EGLSurface eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list);
+ @Deprecated
EGLSurface eglCreatePixmapSurface(EGLDisplay display, EGLConfig config, Object native_pixmap, int[] attrib_list);
EGLSurface eglCreateWindowSurface(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list);
boolean eglDestroyContext(EGLDisplay display, EGLContext context);