summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Arthur Hung <arthurhung@google.com> 2021-04-28 15:13:06 +0000
committer Arthur Hung <arthurhung@google.com> 2021-05-03 08:44:58 +0000
commit2274a3146953176b72f2cf2cc578945d8a95f2ff (patch)
tree94bc623d3a3555f06163ce453926a12278b6e615 /libs/gui/SurfaceComposerClient.cpp
parent0021fac86976361657fbc74bc908d548c18511ea (diff)
Fix potential synchronized race between SF and InputFlinger
The 'CountDownLatch' is used to control the synchronization behavior if a transaction is synchronous or contains the syncInputWindow command, while updating input windows asynchronously, if there is another synchronized transaction queued and commited before input windows updated, it may cause the transaction return early and cause other input function such as 'transferTouchFocus' failed. This CL distinguish the transaction and input windows updating synchronization that could help to signal the CountDownLatch in correct situation. Test: atest SurfaceFlinger_tests Test: atest CrossDragAndDropTests --rerun-until-failure 50 Bug: 183877670 Bug: 183877512 Bug: 183880412 Change-Id: I68e124006e86d8b9c4b8c528418b9db2065b21de
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions