diff options
author | Jack Palevich <jackpal@google.com> | 2010-03-25 10:50:21 -0700 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2010-03-25 10:50:21 -0700 |
commit | e6c9448eb3228887c49f6ba9c4be2345443286e9 (patch) | |
tree | 12dd6c8a8ddd021e6ae4b671c1f485e8323deb28 | |
parent | 5202eaaa5f5e898c84f33d8c8023a427ca01d517 (diff) | |
download | frameworks_base-e6c9448eb3228887c49f6ba9c4be2345443286e9.zip frameworks_base-e6c9448eb3228887c49f6ba9c4be2345443286e9.tar.gz frameworks_base-e6c9448eb3228887c49f6ba9c4be2345443286e9.tar.bz2 |
Add logging of GLSurfaceView pause/resume calls.
Turn on GLSurfaceView logging, so we can get better
information in the monkey tests.
Change-Id: Ifec0101f8a00ab09037dc9f7a1496fa1a374cc08
-rw-r--r-- | opengl/java/android/opengl/GLSurfaceView.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/opengl/java/android/opengl/GLSurfaceView.java b/opengl/java/android/opengl/GLSurfaceView.java index e07b3f9..536297f 100644 --- a/opengl/java/android/opengl/GLSurfaceView.java +++ b/opengl/java/android/opengl/GLSurfaceView.java @@ -155,11 +155,12 @@ import android.view.SurfaceView; * */ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback { - private final static boolean LOG_THREADS = false; - private final static boolean LOG_SURFACE = false; + private final static boolean LOG_THREADS = true; + private final static boolean LOG_PAUSE_RESUME = true; + private final static boolean LOG_SURFACE = true; private final static boolean LOG_RENDERER = false; private final static boolean LOG_RENDERER_DRAW_FRAME = false; - private final static boolean LOG_EGL = false; + private final static boolean LOG_EGL = true; // Work-around for bug 2263168 private final static boolean DRAW_TWICE_AFTER_SIZE_CHANGED = true; /** @@ -1381,6 +1382,9 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback public void onPause() { synchronized (sGLThreadManager) { + if (LOG_PAUSE_RESUME) { + Log.i("GLThread", "onPause tid=" + getId()); + } mPaused = true; sGLThreadManager.notifyAll(); } @@ -1388,6 +1392,9 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback public void onResume() { synchronized (sGLThreadManager) { + if (LOG_PAUSE_RESUME) { + Log.i("GLThread", "onResume tid=" + getId()); + } mPaused = false; mRequestRender = true; sGLThreadManager.notifyAll(); |