Merge "Unblocking surface sync if the viewroot dies before traversal can happen" into tm-qpr-dev

This commit is contained in:
Sunny Goyal
2023-01-13 17:39:57 +00:00
committed by Android (Google) Code Review

View File

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