Skip to content

Commit 1cb7e56

Browse files
author
Wenhui Yang
committed
[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
1 parent 7ab3098 commit 1cb7e56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/surfaceflinger/Layer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ class Layer : public virtual RefBase {
520520
* the InputDispatcher to do PID based occlusion detection.
521521
*/
522522
bool needsInputInfo() const {
523-
return (hasInputInfo() || hasBufferOrSidebandStream()) && !mPotentialCursor;
523+
return (hasInputInfo() || hasBufferOrSidebandStream() || fillsColor()) && !mPotentialCursor;
524524
}
525525

526526
// Implements RefBase.

0 commit comments

Comments
 (0)