media: Add CodecWrapper for threadsafe MediaCodec access
MediaCodecVideoDecoder needs to decode using a MediaCodec on the MCVD thread while dequeued buffers are released back to the codec on the GPU thread. CodecWrapper supports this use case by vending CodecOutputBuffers which keep a reference to their backing wrapper, and a unique id so that CodecWrapper can keep track of which buffers are valid. Bug: 660942 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I798df44a7639071f9eb3f2803d018ced4b121137 Reviewed-on: https://chromium-review.googlesource.com/517351Reviewed-by:Frank Liberato <liberato@chromium.org> Commit-Queue: Chris Watkins <watk@chromium.org> Cr-Commit-Position: refs/heads/master@{#475740}
Showing
This diff is collapsed.
Please register or sign in to comment