Skip to content

Commit 6317604

Browse files
Wenhui YangCherrypicker Worker
authored andcommitted
[DO NOT MERGE] Send dim layer in input list
Consider dim layers when calculating occlusion in inputdispatcher. Bug: 277076451 Test: app-debug.apk in the bug Test: go/wm-smoke Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1cb7e56804a41c98c71ef6c80eb2e44f0b1ac49d) Merged-In: Icf2b6842b58c57461b0ca3e9424c830aab72d78e Change-Id: Icf2b6842b58c57461b0ca3e9424c830aab72d78e
1 parent cb42213 commit 6317604

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)