Do not log surface destroy by default

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
This commit is contained in:
Chong Zhang
2016-08-31 16:05:27 -07:00
parent 40e6194148
commit ad23b3fa11

View File

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