Merge "Remove conflict window crop" into tm-dev

This commit is contained in:
Hongwei Wang
2022-06-03 02:20:26 +00:00
committed by Android (Google) Code Review

View File

@@ -134,9 +134,6 @@ public abstract class PipContentOverlay {
tx.setBuffer(mLeash, mSnapshot.getHardwareBuffer());
// Relocate the content to parentLeash's coordinates.
tx.setPosition(mLeash, -mSourceRectHint.left, -mSourceRectHint.top);
tx.setWindowCrop(mLeash,
(int) (mSourceRectHint.width() * mTaskSnapshotScaleX),
(int) (mSourceRectHint.height() * mTaskSnapshotScaleY));
tx.setScale(mLeash, mTaskSnapshotScaleX, mTaskSnapshotScaleY);
tx.reparent(mLeash, parentLeash);
tx.apply();