summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Hongwei Wang <hwwang@google.com> 2022-06-03 02:20:26 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-06-03 02:20:26 +0000
commit3fa5b5332bd340203121661a5588b468b65fdc07 (patch)
tree8788280c9e3eca1d12af2d03f527e94859b81356 /libs
parent58bda6d509bbc06e3dbe1f73931f92f4df3f92ea (diff)
parent6683426dbfc5e048d04970c4a10cdec6bcb1506e (diff)
Merge "Remove conflict window crop" into tm-dev
Diffstat (limited to 'libs')
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipContentOverlay.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipContentOverlay.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipContentOverlay.java
index 3dea0e02c530..0e32663955d3 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipContentOverlay.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipContentOverlay.java
@@ -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();