Enable logging for surface create/destroy.
bug: 26819496 Change-Id: I969b87122126df994c5bd5af177b672bcab5b7dd
This commit is contained in:
@@ -35,10 +35,10 @@ public class WindowManagerDebugConfig {
|
||||
|
||||
static final boolean DEBUG_RESIZE = false;
|
||||
static final boolean DEBUG = false;
|
||||
static final boolean DEBUG_ADD_REMOVE = false;
|
||||
static final boolean DEBUG_ADD_REMOVE = true;
|
||||
static final boolean DEBUG_FOCUS = false;
|
||||
static final boolean DEBUG_FOCUS_LIGHT = DEBUG_FOCUS || false;
|
||||
static final boolean DEBUG_ANIM = false;
|
||||
static final boolean DEBUG_ANIM = true;
|
||||
static final boolean DEBUG_KEYGUARD = false;
|
||||
static final boolean DEBUG_LAYOUT = false;
|
||||
static final boolean DEBUG_LAYERS = false;
|
||||
@@ -50,7 +50,7 @@ public class WindowManagerDebugConfig {
|
||||
static final boolean DEBUG_ORIENTATION = false;
|
||||
static final boolean DEBUG_APP_ORIENTATION = false;
|
||||
static final boolean DEBUG_CONFIGURATION = false;
|
||||
static final boolean DEBUG_APP_TRANSITIONS = false;
|
||||
static final boolean DEBUG_APP_TRANSITIONS = true;
|
||||
static final boolean DEBUG_STARTING_WINDOW = false;
|
||||
static final boolean DEBUG_WALLPAPER = false;
|
||||
static final boolean DEBUG_WALLPAPER_LIGHT = false || DEBUG_WALLPAPER;
|
||||
|
||||
@@ -2225,7 +2225,8 @@ final class WindowState implements WindowManagerPolicy.WindowState {
|
||||
}
|
||||
pw.print(prefix); pw.print("mHasSurface="); pw.print(mHasSurface);
|
||||
pw.print(" mShownPosition="); mShownPosition.printShortString(pw);
|
||||
pw.print(" isReadyForDisplay()="); pw.println(isReadyForDisplay());
|
||||
pw.print(" isReadyForDisplay()="); pw.print(isReadyForDisplay());
|
||||
pw.print(" hasSavedSurface()="); pw.println(hasSavedSurface());
|
||||
if (dumpAll) {
|
||||
pw.print(prefix); pw.print("mFrame="); mFrame.printShortString(pw);
|
||||
pw.print(" last="); mLastFrame.printShortString(pw);
|
||||
|
||||
@@ -567,6 +567,10 @@ class WindowStateAnimator {
|
||||
|
||||
WindowSurfaceController createSurfaceLocked() {
|
||||
final WindowState w = mWin;
|
||||
if (w.hasSavedSurface()) {
|
||||
Slog.i(TAG, "***** createSurface: " + this + ": called when we had a saved surface");
|
||||
}
|
||||
|
||||
if (mSurfaceController == null) {
|
||||
if (DEBUG_ANIM || DEBUG_ORIENTATION) Slog.i(TAG,
|
||||
"createSurface " + this + ": mDrawState=DRAW_PENDING");
|
||||
|
||||
Reference in New Issue
Block a user