summaryrefslogtreecommitdiffstats
path: root/opengl/java/android
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-11-06 16:45:58 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-11-06 16:45:58 -0800
commite54f267f06e86f9c1248742fc56967355721a4e7 (patch)
tree5c9afbd9db7305b1e2435e0d97a67b9e9ba8bf7e /opengl/java/android
parenta3c90d930ebabcfffd9d4d7715ad1329e1f8c2d8 (diff)
parenta3a351e5d164d0c8b461ae7af86edc0227654a76 (diff)
downloadframeworks_base-e54f267f06e86f9c1248742fc56967355721a4e7.zip
frameworks_base-e54f267f06e86f9c1248742fc56967355721a4e7.tar.gz
frameworks_base-e54f267f06e86f9c1248742fc56967355721a4e7.tar.bz2
am a3a351e5: resolved conflicts for merge of 4e3fadd0 to eclair-mr2
Merge commit 'a3a351e5d164d0c8b461ae7af86edc0227654a76' into eclair-mr2-plus-aosp * commit 'a3a351e5d164d0c8b461ae7af86edc0227654a76': Fix stupid bug in GLThreadManager implementation.
Diffstat (limited to 'opengl/java/android')
-rw-r--r--opengl/java/android/opengl/GLSurfaceView.java15
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) {