From 1cb7e56804a41c98c71ef6c80eb2e44f0b1ac49d Mon Sep 17 00:00:00 2001 From: Wenhui Yang Date: Fri, 20 Dec 2024 14:35:42 -0800 Subject: [DO NOT MERGE] Send dim layer in input list Consider dim layers when calculating occlusion in inputdispatcher. Bug: 277076451 Change-Id: Icf2b6842b58c57461b0ca3e9424c830aab72d78e Test: app-debug.apk in the bug Test: go/wm-smoke Flag: EXEMPT bugfix --- services/surfaceflinger/Layer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h index f7596e20e5..da54698cb4 100644 --- a/services/surfaceflinger/Layer.h +++ b/services/surfaceflinger/Layer.h @@ -520,7 +520,7 @@ public: * the InputDispatcher to do PID based occlusion detection. */ bool needsInputInfo() const { - return (hasInputInfo() || hasBufferOrSidebandStream()) && !mPotentialCursor; + return (hasInputInfo() || hasBufferOrSidebandStream() || fillsColor()) && !mPotentialCursor; } // Implements RefBase. -- cgit v1.2.3-59-g8ed1b