media: Reduce latency in MojoDecoderBufferConverter
Today we always write and read from the DataPipe asynchronously. This might introduce unnecessary latency since the DataPipe might already be readable/writable when we schedule the read/write. This also indirectly contributes to out-of-order dispatch of Decode() and Reset() calls in some MojoDecoderBufferConverter clients, e.g. MojoAudioDecoderService, MojoVideoDecoderService, MojoDecryptorService. See BUG for more details. Unit tests are added to cover this issue. Note that this CL does not completely fix the BUG. A follow up CL will come next, with more tests added. BUG=792281 TEST=More tests added. Change-Id: Ia6dc25f8621cca2a041b6299b104de2074c06a02 Reviewed-on: https://chromium-review.googlesource.com/818329 Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Reviewed-by:Dan Sanders <sandersd@chromium.org> Reviewed-by:
Xiangjun Zhang <xjz@chromium.org> Cr-Commit-Position: refs/heads/master@{#523246}
Showing
This diff is collapsed.
Please register or sign in to comment