Remove conflict window crop

We actually do not need to crop the snapshot re-parented to the leash
since it's bound to the Task's bounds.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/eh7phISItWvnhSoZz8GKh8
Bug: 234642410
Test: Enter content-pip from content away from the top, see video
Change-Id: I43c1ed6088d1be15b87326fb4f0cf459956a7c00
This commit is contained in:
Hongwei Wang
2022-06-02 10:49:31 -07:00
parent 92bc449565
commit 6683426dbf

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();