diff options
| author | 2022-09-01 16:58:38 -0700 | |
|---|---|---|
| committer | 2022-09-01 16:58:38 -0700 | |
| commit | c49b8a122b20df443c27819c9648f51bd1a75d25 (patch) | |
| tree | 2b683c3616398216fedbbe6e789e1d889da70386 | |
| parent | c6a2b7e2995ff449a776a9899f6ff5a1b03773c0 (diff) | |
Stop making copies when updating input channels
Bug: 244586478
Test: No window decor layers in offscreen layers.
Change-Id: Ib8cb9e30a0c078fe959037135a51261aa13ac31b
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java index f512b0d4fe10..3d014959a952 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java @@ -87,7 +87,7 @@ class DragResizeInputListener implements AutoCloseable { try { mWindowSession.grantInputChannel( mDisplayId, - new SurfaceControl(mDecorationSurface, TAG), + mDecorationSurface, mFakeWindow, null /* hostInputToken */, FLAG_NOT_FOCUSABLE, @@ -150,8 +150,7 @@ class DragResizeInputListener implements AutoCloseable { mWindowSession.updateInputChannel( mInputChannel.getToken(), mDisplayId, - new SurfaceControl( - mDecorationSurface, "DragResizeInputListener#setTouchRegion"), + mDecorationSurface, FLAG_NOT_FOCUSABLE, PRIVATE_FLAG_TRUSTED_OVERLAY, touchRegion); |