diff options
author | Courtney Goeltzenleuchter <courtneygo@google.com> | 2018-10-19 11:19:53 -0600 |
---|---|---|
committer | Courtney Goeltzenleuchter <courtneygo@google.com> | 2018-10-23 07:44:56 -0600 |
commit | 6e8c60ccc1bbfb4da31ef4d1055d938cb2d430af (patch) | |
tree | 7b8f626120f86c817526242ca49e6acb0e5ab417 /opengl | |
parent | ff064b1eec5659aed77575ab240440b9224840f3 (diff) |
Add EGL15: eglCreateImage, eglDestroyImage
Also change eglCreatePlatformPixmapSurface to throw an
unsupported extension rather than call the native function
which will return an error indicating it's unsupported.
Bug: 80297325
Test: atest CtsGraphicsTestCases:EGL15Test
Change-Id: I94f2d39678515fdacf9b2fccd1c531365930ad1b
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/java/android/opengl/EGL15.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/opengl/java/android/opengl/EGL15.java b/opengl/java/android/opengl/EGL15.java index 9aae6ad0f080..f855fe2591e1 100644 --- a/opengl/java/android/opengl/EGL15.java +++ b/opengl/java/android/opengl/EGL15.java @@ -146,4 +146,22 @@ public class EGL15 { int flags ); + // C function EGLImage eglCreateImage ( EGLDisplay dpy, EGLContext context, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list ) + + public static native EGLImage eglCreateImage( + EGLDisplay dpy, + EGLContext context, + int target, + long buffer, + long[] attrib_list, + int offset + ); + + // C function EGLBoolean eglDestroyImage ( EGLDisplay dpy, EGLImage image ) + + public static native boolean eglDestroyImage( + EGLDisplay dpy, + EGLImage image + ); + } |