OSDN Git Service

Do not log surface destroy by default
authorChong Zhang <chz@google.com>
Wed, 31 Aug 2016 23:05:27 +0000 (16:05 -0700)
committerChong Zhang <chz@google.com>
Wed, 31 Aug 2016 23:09:17 +0000 (16:09 -0700)
Put it back under SHOW_TRANSACTIONS, this was for assist debugging
some early surface destroy issues but should be no longer needed.

Change-Id: I0806ac0ad2c9de3d0ccf9af995ced25c9a2f7668

services/core/java/com/android/server/wm/WindowSurfaceController.java

index c77e572..f5ed9d1 100644 (file)
@@ -153,9 +153,9 @@ class WindowSurfaceController {
     }
 
     void destroyInTransaction() {
-        //        if (SHOW_TRANSACTIONS || SHOW_SURFACE_ALLOC) {
-        Slog.i(TAG, "Destroying surface " + this + " called by " + Debug.getCallers(8));
-        //        }
+        if (SHOW_TRANSACTIONS || SHOW_SURFACE_ALLOC) {
+            Slog.i(TAG, "Destroying surface " + this + " called by " + Debug.getCallers(8));
+        }
         try {
             if (mSurfaceControl != null) {
                 mSurfaceControl.destroy();