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
2 files changed