Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8975bd3 authored by Chong Zhang's avatar Chong Zhang
Browse files

Enable logging for surface create/destroy.

bug: 26819496
Change-Id: I969b87122126df994c5bd5af177b672bcab5b7dd
parent c9fd313f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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);
+4 −0
Original line number Diff line number Diff line
@@ -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");