media/gpu/v4l2: make accelerators work without GL
VideoDecodeAccelerators are supposed to work without GL support, provided the make_context_current_cb_ callback is null. However the Initialize() method of V4L2 accelerators checked for a valid EGL display unconditionally. Move this check under the condition that make_context_current_cb_ is not null, so that the V4L2 accelerators can be used without an EGL display. BUG=819542 TEST=Made sure VDA tests were still passing on eve, hana and kevin. Change-Id: I632e85bad6871910c8a9114c6c34338c37262c08 Reviewed-on: https://chromium-review.googlesource.com/954767Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#542982}
Showing
Please register or sign in to comment