From 8ff6b9ebeeb24a6161ec6098e6bfdf8790ee5695 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 9 Nov 2011 20:10:18 -0800 Subject: 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 --- opengl/java/android/opengl/EGLLogWrapper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'opengl/java/android') diff --git a/opengl/java/android/opengl/EGLLogWrapper.java b/opengl/java/android/opengl/EGLLogWrapper.java index 6c0fdb33f429..36e88a2b8f0b 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"); -- cgit v1.2.3-59-g8ed1b