media/gpu/v4l2vda: Assign output_fds earlier
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:Pawel Osciak <posciak@chromium.org> Reviewed-by:
Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#601882}
Showing
Please register or sign in to comment