Merge "Do not create extend surface for transfer starting window change." into tm-qpr-dev am: b31a80dedc am: b4fc867f0e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19780094

Change-Id: I26febceef1327bc1d72920e22e081957ec38ee64
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Wei Sheng Shih
2022-09-08 05:20:35 +00:00
committed by Automerger Merge Worker

View File

@@ -554,6 +554,12 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
private void edgeExtendWindow(TransitionInfo.Change change,
Animation a, SurfaceControl.Transaction startTransaction,
SurfaceControl.Transaction finishTransaction) {
// Do not create edge extension surface for transfer starting window change.
// The app surface could be empty thus nothing can draw on the hardware renderer, which will
// block this thread when calling Surface#unlockCanvasAndPost.
if ((change.getFlags() & FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT) != 0) {
return;
}
final Transformation transformationAtStart = new Transformation();
a.getTransformationAt(0, transformationAtStart);
final Transformation transformationAtEnd = new Transformation();