summaryrefslogtreecommitdiffstats
path: root/opengl/java/javax
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-11-09 20:10:18 -0800
committerRomain Guy <romainguy@google.com>2011-11-10 16:44:49 -0800
commit8ff6b9ebeeb24a6161ec6098e6bfdf8790ee5695 (patch)
treeb6caef363611d37aa58a1b92d96b0b8e2e9f50c4 /opengl/java/javax
parent36a7f2a9adfa21ec31f00d496fef82e68931c860 (diff)
downloadframeworks_base-8ff6b9ebeeb24a6161ec6098e6bfdf8790ee5695.zip
frameworks_base-8ff6b9ebeeb24a6161ec6098e6bfdf8790ee5695.tar.gz
frameworks_base-8ff6b9ebeeb24a6161ec6098e6bfdf8790ee5695.tar.bz2
Terminate EGL when an app goes in the background
This does not happen on high end gfx devices. This happens only if only one EGL context is initialized in the current process. Change-Id: Ibd1737efdf84eef8a84108b05795440d1ae9964e
Diffstat (limited to 'opengl/java/javax')
-rw-r--r--opengl/java/javax/microedition/khronos/egl/EGL10.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/opengl/java/javax/microedition/khronos/egl/EGL10.java b/opengl/java/javax/microedition/khronos/egl/EGL10.java
index 2ae793a..cf58888 100644
--- a/opengl/java/javax/microedition/khronos/egl/EGL10.java
+++ b/opengl/java/javax/microedition/khronos/egl/EGL10.java
@@ -114,6 +114,8 @@ public interface EGL10 extends EGL {
boolean eglQueryContext(EGLDisplay display, EGLContext context, int attribute, int[] value);
String eglQueryString(EGLDisplay display, int name);
boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value);
+ /** @hide **/
+ boolean eglReleaseThread();
boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface);
boolean eglTerminate(EGLDisplay display);
boolean eglWaitGL();