media/gpu/V4L2VDA: Don't wait on EGL Fences indefinitely.
This might cause the GPU thread to block forever when shutting down the decoder, as we could be waiting for an EGL fence that will never be signaled while queuing an output buffer. See crrev.com/c/1133614. Some changes are introduced to make sure that: * Waiting for an EGL fence is no longer blocking and can be interrupted. * Any tasks queued will check whether a destroy is pending upon starting, and early-exit if required. TEST=ran VDA tests on peach-pi 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: I962cbead32b050cde4f4698b6717e96972d216d4 Reviewed-on: https://chromium-review.googlesource.com/1195225 Commit-Queue: David Staessens <dstaessens@chromium.org> Reviewed-by:Pawel Osciak <posciak@chromium.org> Cr-Commit-Position: refs/heads/master@{#589402}
Showing
Please register or sign in to comment