commit | ea9fcc96d5e7a28745f2cbf7b2c46b9ba8c2a667 | [log] [tgz] |
---|---|---|
author | Jia Zhao <jiaqzhao@google.com> | Fri Dec 08 14:14:13 2017 -0800 |
committer | Jia Zhao <jiaqzhao@google.com> | Fri Dec 08 14:14:13 2017 -0800 |
tree | 9c3bf16d1504782e32fd576f69689b903fb4e6e0 | |
parent | db7492a4335d9b798085c39284ffe67b7efe904d [diff] |
Fix to avoid a race condition when consuming buffer. Using PixelCopy to capture a snapshot of the last frame rendered to SurfaceView, this could prevent the buffer containing the frame to be used by the decoder before the copy is done. Bug: 69527789 Test: Tested by partners Change-Id: Ie40c2609f1f4fcd5e4b5a0215e7555aced4eb7f5