Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cdd7df92 authored by Robert Carr's avatar Robert Carr
Browse files

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
parent b7f378a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment