From ab89d814773998395da8d234ef7114fd1093b31e Mon Sep 17 00:00:00 2001 From: Wenhui Yang Date: Wed, 11 Sep 2024 23:21:38 +0000 Subject: Fix the input info missing for SurfaceView Layer snapshots with buffers but without inputinfo were not sent to input or other window info listeners. This was due to a bug in how we checked to see if the layer needed an input info. FIx this to send SurfaceView layers to window info listeners. Fixes: 365167765 Test: LayerSnapshotTest Test: LayerLifecycleManagerTest Flag: EXEMPT bugfix Change-Id: I49e5d1e503af860a8324cc8b36589748ca2b7a25 --- libs/gui/SurfaceControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/gui/SurfaceControl.cpp') diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index c5f9c38ca3..f126c0be2f 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp @@ -139,9 +139,9 @@ sp SurfaceControl::generateSurfaceLocked() uint32_t ignore; auto flags = mCreateFlags & (ISurfaceComposerClient::eCursorWindow | ISurfaceComposerClient::eOpaque); - mBbqChild = mClient->createSurface(String8("bbq-wrapper"), 0, 0, mFormat, + mBbqChild = mClient->createSurface(String8::format("[BBQ] %s", mName.c_str()), 0, 0, mFormat, flags, mHandle, {}, &ignore); - mBbq = sp::make("bbq-adapter", mBbqChild, mWidth, mHeight, mFormat); + mBbq = sp::make("[BBQ]" + mName, mBbqChild, mWidth, mHeight, mFormat); // This surface is always consumed by SurfaceFlinger, so the // producerControlledByApp value doesn't matter; using false. -- cgit v1.2.3-59-g8ed1b