commit | bc1004965461ad0fbf30f70141797b1d6a2c9436 | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Tue Aug 18 16:06:40 2020 -0700 |
committer | chaviw <chaviw@google.com> | Mon Sep 14 11:22:07 2020 -0700 |
tree | 28354c941a54ad537fefbfb478ced5f55836ca15 | |
parent | a701408ef0dc3ed2e144cbc7f5698d62310f382d [diff] |
Send ScreenCaptureListener to native screen capture requests. Allow for asynchronous screenshot by sending a ScreenCaptureListener to handle screenshot callbacks. All existing calls are still synchronous since the SurfaceControl method will block the caller until the results from SurfaceFlinger are ready. Test: power + volume down Test: adb shell screencap Bug: 162367424 Change-Id: I6cb5641dc19f32f262e3120949fc30ea104cff89