From ab814a647222ff6a6b682f0ff8159d1253cc0713 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 10 Apr 2013 12:33:15 -0700 Subject: 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 --- opengl/java/android/opengl/GLSurfaceView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opengl/java') 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(); } } -- cgit v1.1