media/gpu: Add CreateContextAndScopedVASurface()
This CL adds the function CreateContextAndScopedVASurface() to the VaapiWrapper, which attempts to create a context and surface and return a std::unique_ptr<ScopedVASurface> to the client. This CL is needed for the following change: https://crrev.com/c/1672404 Bug: 868400, 980379 Test: jpeg_decode_accelerator_unittest Change-Id: Ic98ec612aed7ae221698e42f5b77378bbb0fc26d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1693361 Commit-Queue: Gil Dekel <gildekel@chromium.org> Reviewed-by:Miguel Casas <mcasas@chromium.org> Reviewed-by:
Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#675806}
Showing
Please register or sign in to comment