• Alexandre Courbot's avatar
    media/gpu/v4l2vda: Assign output_fds earlier · 42a63f2b
    Alexandre Courbot authored
    When using import mode, we used to assign output_fds last, during
    the call to AssignEGLImage(). However this can also be done ahead of
    time in ImportBufferForPictureTask(). Doing so allows us to stop passing
    the DMABUF FDs as an argument to AssignEGLImage(), simplifying its
    interface as well as the code in ImportBufferForPictureTask().
    
    BUG=792790
    TEST=Checked that VDA unittest was passing on Hana, in import and
    non-import mode, with rendering enabled or not.
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
    Change-Id: I95b66f7b3b4ee31147b2eb34a19499c39ad4efa8
    Reviewed-on: https://chromium-review.googlesource.com/c/1288497Reviewed-by: default avatarPawel Osciak <posciak@chromium.org>
    Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
    Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#601882}
    42a63f2b
v4l2_video_decode_accelerator.cc 91.1 KB