Merge "Stop making copies when updating input channels" into tm-qpr-dev am: 4e86b76aaa

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19820795

Change-Id: I81aa6292c65488738b4d6251f25d8eb6b4c0a505
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Garfield Tan
2022-09-03 01:48:23 +00:00
committed by Automerger Merge Worker

View File

@@ -87,7 +87,7 @@ class DragResizeInputListener implements AutoCloseable {
try { try {
mWindowSession.grantInputChannel( mWindowSession.grantInputChannel(
mDisplayId, mDisplayId,
new SurfaceControl(mDecorationSurface, TAG), mDecorationSurface,
mFakeWindow, mFakeWindow,
null /* hostInputToken */, null /* hostInputToken */,
FLAG_NOT_FOCUSABLE, FLAG_NOT_FOCUSABLE,
@@ -150,8 +150,7 @@ class DragResizeInputListener implements AutoCloseable {
mWindowSession.updateInputChannel( mWindowSession.updateInputChannel(
mInputChannel.getToken(), mInputChannel.getToken(),
mDisplayId, mDisplayId,
new SurfaceControl( mDecorationSurface,
mDecorationSurface, "DragResizeInputListener#setTouchRegion"),
FLAG_NOT_FOCUSABLE, FLAG_NOT_FOCUSABLE,
PRIVATE_FLAG_TRUSTED_OVERLAY, PRIVATE_FLAG_TRUSTED_OVERLAY,
touchRegion); touchRegion);