commit | dd4ef27360d1ffdc153c45251bbe6530e5af4ead | [log] [tgz] |
---|---|---|
author | Dominik Laskowski <domlaskowski@google.com> | Thu Apr 23 14:02:12 2020 -0700 |
committer | Dominik Laskowski <domlaskowski@google.com> | Mon Apr 27 11:12:28 2020 -0700 |
tree | 411585c58f2a26fada16e84d44ae499d448d4119 | |
parent | 0f1eb7d4517a207d06ce64e4ad8cacda219ca11b [diff] |
SF: Modernize task scheduling API Replace postMessageAsync and postMessageSync with schedule(<lambda>) returning std::future<T>, where T is the return type of the lambda, for an ergonomic and less error-prone API. Rewrite the hand-rolled synchronization logic in captureScreenCommon. Bug: 123715322 Bug: 134772048 Test: go/wm-smoke Test: screencap Test: libsurfaceflinger_unittest Change-Id: I02dc4114b61fb175463941ab5890e3127dd57a11