summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
authorWenhui Yang <wenhuiy@google.com>2024-12-20 14:35:42 -0800
committerJulian Veit <Claymore1298@gmail.com>2025-04-18 14:07:42 +0200
commitac5e47d00e032e1efc76f73b9610308a41bb6293 (patch)
tree3d9fdcad2d4846be9ebd84f23011d9cc4877c35c /services/surfaceflinger/Layer.h
parent6a9d3e1f2b2d45c7ec474ced43a71064f4688d08 (diff)
[DO NOT MERGE] Send dim layer in input listHEADu14.0
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) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:058c68151f4ddbdf22b2d6142d7b6d4e901bc0a1) Merged-In: Icf2b6842b58c57461b0ca3e9424c830aab72d78e Change-Id: Icf2b6842b58c57461b0ca3e9424c830aab72d78e
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-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 0ceecec7ec..0b1e3cfc54 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -522,7 +522,7 @@ public:
* the InputDispatcher to do PID based occlusion detection.
*/
bool needsInputInfo() const {
- return (hasInputInfo() || hasBufferOrSidebandStream()) && !mPotentialCursor;
+ return (hasInputInfo() || hasBufferOrSidebandStream() || fillsColor()) && !mPotentialCursor;
}
// Implements RefBase.