| commit | fb3beed5c6d2561bf47421420246df33f111d661 | [log] [tgz] |
|---|---|---|
| author | Dominik Laskowski <domlaskowski@google.com> | Thu Jul 07 07:34:38 2022 -0700 |
| committer | Dominik Laskowski <domlaskowski@google.com> | Fri Jul 08 13:30:01 2022 -0700 |
| tree | a84287b6740f538debe7d03432f0c824b04c0295 | |
| parent | bd55592a4504e3b4237f697255f5307b7a6eca64 [diff] |
SF: Do not block the main thread on screenshots The destructor of the future returned by std::async blocks until the async operation completes, which defeats the purpose of spinning up a thread to wait on the RenderEngine future. Instead, defer the wait back to the Binder thread. Bug: 232436803 Test: Perfetto Change-Id: I7260002741a0174d8960894d490079757dc4bb5b