summaryrefslogtreecommitdiffstats
path: root/opengl/java/android
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/android
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/android')
-rw-r--r--opengl/java/android/opengl/EGLLogWrapper.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/opengl/java/android/opengl/EGLLogWrapper.java b/opengl/java/android/opengl/EGLLogWrapper.java
index 6c0fdb3..36e88a2 100644
--- a/opengl/java/android/opengl/EGLLogWrapper.java
+++ b/opengl/java/android/opengl/EGLLogWrapper.java
@@ -314,6 +314,16 @@ class EGLLogWrapper implements EGL11 {
checkError();
return result;
}
+
+ /** @hide **/
+ public boolean eglReleaseThread() {
+ begin("eglReleaseThread");
+ end();
+ boolean result = mEgl10.eglReleaseThread();
+ returns(result);
+ checkError();
+ return result;
+ }
public boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface) {
begin("eglInitialize");