Merge "Unblocking surface sync if the viewroot dies before traversal can happen"

This commit is contained in:
Chavi Weingarten
2023-01-13 14:09:21 +00:00
committed by Android (Google) Code Review

View File

@@ -8823,6 +8823,10 @@ public final class ViewRootImpl implements ViewParent,
mAdded = false;
AnimationHandler.removeRequestor(this);
}
if (mActiveSurfaceSyncGroup != null) {
mActiveSurfaceSyncGroup.markSyncReady();
mActiveSurfaceSyncGroup = null;
}
WindowManagerGlobal.getInstance().doRemoveView(this);
}