summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Wenhui Yang <wenhuiy@google.com> 2024-12-20 14:35:42 -0800
committer Wenhui Yang <wenhuiy@google.com> 2024-12-20 15:21:44 -0800
commit1cb7e56804a41c98c71ef6c80eb2e44f0b1ac49d (patch)
tree65b7f0176114bc6ecc11bd129153857e1ad6769d
parent7ab3098310c1f656cae4792c208c7857ed6ec43a (diff)
[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
-rw-r--r--services/surfaceflinger/Layer.h2
1 files changed, 1 insertions, 1 deletions
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.