diff options
author | Mathias Agopian <mathias@google.com> | 2013-04-10 12:33:15 -0700 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2013-04-10 19:08:16 -0700 |
commit | fb01e4b634a4126141c361fc641ec03f872826ba (patch) | |
tree | 218e6336f8c67ec9294e10c4d26ab420d5786726 | |
parent | c45da6d7cee73da07b205b20ee9b8aff8788c7e5 (diff) | |
download | frameworks_base-fb01e4b634a4126141c361fc641ec03f872826ba.zip frameworks_base-fb01e4b634a4126141c361fc641ec03f872826ba.tar.gz frameworks_base-fb01e4b634a4126141c361fc641ec03f872826ba.tar.bz2 |
Don't draw synchronously in onResume()
this could cause a dead-lock if the applicaltion's draw
implementation blocks until something happenson the main
ui thread.
note: we're still doing this synchronous draw in onWindowResize() because
that's what the previous implementation did. Technically, it has the
same problem.
Bug: 8586305
Change-Id: I782568289cc9419346aeea73775d86faa28b3058
-rw-r--r-- | opengl/java/android/opengl/GLSurfaceView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/java/android/opengl/GLSurfaceView.java b/opengl/java/android/opengl/GLSurfaceView.java index daa5d13..ab7ceb6 100644 --- a/opengl/java/android/opengl/GLSurfaceView.java +++ b/opengl/java/android/opengl/GLSurfaceView.java @@ -1507,7 +1507,7 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback mPaused = false; updateState(); if (mRenderMode == RENDERMODE_WHEN_DIRTY) { - executeDraw(); + requestRender(); } } |