• Xiaohan Wang's avatar
    media: Reduce latency in MojoDecoderBufferConverter · 2c4150a2
    Xiaohan Wang authored
    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: default avatarDan Sanders <sandersd@chromium.org>
    Reviewed-by: default avatarXiangjun Zhang <xjz@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523246}
    2c4150a2
mojo_video_decoder_integration_test.cc 11.6 KB