Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6683426d authored by Hongwei Wang's avatar Hongwei Wang
Browse files

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
parent 92bc4495
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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();