diff options
author | 2023-04-16 00:00:40 +0000 | |
---|---|---|
committer | 2023-04-16 00:00:40 +0000 | |
commit | ce2205fc6ff1eaf93bbb00df90df0e02e42a9f2c (patch) | |
tree | 38bcda8ad9fdded152c18a1bdb2835dc21b72da4 /services/surfaceflinger/Layer.cpp | |
parent | cd5edad6c2ee8174f9813836bb5044378fa7e70b (diff) | |
parent | 1caf3b7d82024c9814b5ca41b144c193ade5da26 (diff) |
Merge "SF: throttle WindowInfosListener calls" into udc-dev
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index a538c6d6fb..9c232b11a7 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -2442,16 +2442,7 @@ WindowInfo Layer::fillInputInfo(const InputDisplayArgs& displayArgs) { info.inputConfig |= WindowInfo::InputConfig::NOT_TOUCHABLE; } - // For compatibility reasons we let layers which can receive input - // receive input before they have actually submitted a buffer. Because - // of this we use canReceiveInput instead of isVisible to check the - // policy-visibility, ignoring the buffer state. However for layers with - // hasInputInfo()==false we can use the real visibility state. - // We are just using these layers for occlusion detection in - // InputDispatcher, and obviously if they aren't visible they can't occlude - // anything. - const bool visible = hasInputInfo() ? canReceiveInput() : isVisible(); - info.setInputConfig(WindowInfo::InputConfig::NOT_VISIBLE, !visible); + info.setInputConfig(WindowInfo::InputConfig::NOT_VISIBLE, !isVisibleForInput()); info.alpha = getAlpha(); fillTouchOcclusionMode(info); |