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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user