summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2021-04-12 15:32:09 -0700
committer Robert Carr <racarr@google.com> 2021-04-12 15:32:09 -0700
commitcdd7df92b0efdea578b32aa98276d20817c7c48e (patch)
treefeccf38bbec26a38e2055d75baabec210eb6686f /libs/gui/SurfaceControl.cpp
parentb7f378a110e98d05d160e1ecd34386cacd3160e6 (diff)
SurfaceFlinger::getNewTexture: Don't deadlock on main thread
This codepath may be invoked on the main thread via the RefreshRateOverlay surface creation codepath. In such case it will trigger a deadlock as we wait on the main thread to complete while blocking the main thread. This can be observed by running RefreshRateOverlayTests with ~5 iterations. It seems safest to just avoid this deadlock. Bug: 184991996 Test: Existing tests pass Change-Id: I3c5c495b8e93761813157840c9878c73bcdee579
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions