diff options
author | Jack Palevich <jackpal@google.com> | 2009-11-06 16:35:19 -0800 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2009-11-06 16:35:19 -0800 |
commit | a3a351e5d164d0c8b461ae7af86edc0227654a76 (patch) | |
tree | a321acc2bd61f1ee164e4db6f01302155d719b47 | |
parent | f6ff2be323812b5525a0755d194b2fc751ba5968 (diff) | |
parent | 4e3fadd0c99d2774709a067e017d8fd622440f0e (diff) | |
download | frameworks_base-a3a351e5d164d0c8b461ae7af86edc0227654a76.zip frameworks_base-a3a351e5d164d0c8b461ae7af86edc0227654a76.tar.gz frameworks_base-a3a351e5d164d0c8b461ae7af86edc0227654a76.tar.bz2 |
resolved conflicts for merge of 4e3fadd0 to eclair-mr2
-rw-r--r-- | opengl/java/android/opengl/GLSurfaceView.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/opengl/java/android/opengl/GLSurfaceView.java b/opengl/java/android/opengl/GLSurfaceView.java index cbe5be4..f11123e 100644 --- a/opengl/java/android/opengl/GLSurfaceView.java +++ b/opengl/java/android/opengl/GLSurfaceView.java @@ -1299,9 +1299,16 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback GLThread oldThread = null; synchronized(this) { - mMostRecentGLThread = thread; oldThread = mMostRecentGLThread; + mMostRecentGLThread = thread; + } + if (oldThread != null && ! mMultipleGLESContextsAllowed) { + synchronized(oldThread) { + oldThread.notifyAll(); + } + } + synchronized(this) { while ((! mMultipleGLESContextsAllowed) && mGLContextCount > 0) { wait(); @@ -1309,12 +1316,6 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback mGLContextCount++; } - - if (oldThread != null && ! mMultipleGLESContextsAllowed) { - synchronized(oldThread) { - oldThread.notifyAll(); - } - } } public synchronized void end(GLThread thread) { |