Do not immediately perform traversals when executing transition

Such that we don't block the binder client, leading to delays.

Test: Cold start app
Test: AppTransitionTests
Change-Id: If39d679ca2461b2c1b488616149397604b2d0765
Fixes: 78646173
This commit is contained in:
Jorim Jaggi
2018-05-11 17:23:58 -07:00
parent 9959b36635
commit 78be267f70

View File

@@ -2691,12 +2691,7 @@ public class WindowManagerService extends IWindowManager.Stub
+ " Callers=" + Debug.getCallers(5));
if (mAppTransition.isTransitionSet()) {
mAppTransition.setReady();
final long origId = Binder.clearCallingIdentity();
try {
mWindowPlacerLocked.performSurfacePlacement();
} finally {
Binder.restoreCallingIdentity(origId);
}
mWindowPlacerLocked.requestTraversal();
}
}
}