OSDN Git Service

Improve GLSurfaceView Pausing.
authorJack Palevich <jackpal@google.com>
Mon, 16 Apr 2012 19:25:36 +0000 (12:25 -0700)
committerJack Palevich <jackpal@google.com>
Mon, 16 Apr 2012 19:25:36 +0000 (12:25 -0700)
commitcee059dc764a57860da6b1574952089680b5ddc6
tree3ab06ffe788422219fbe225af7c70c66a3692d63
parent6e0ac89f3896369363698801e75671b3478e8d4f
Improve GLSurfaceView Pausing.

When pausing we want to do three separate things, in order:

 + release the EGL surface
 + optionally release the EGL context
 + optionally terminate Egl

Previously we would only do these things if we had an EGL surface. But
it is possible that we don't have an EGL Surface, but still have an EGL
context. And in that situation we still want to release the EGL context.

Now we check the preconditions for the three cases separately.

Bug: 6338235
Change-Id: I804683b3d5c136cc98ea3f5051067eea18152ddf
opengl/java/android/opengl/GLSurfaceView.java