-
Hirokazu Honda authored
VA-API driver shares the ownership of the imported buffer. A caller doesn't have to keep NativePixmap after calling VaapiWrapper's CreateVASurfaceForPixmap(). This CL changes the code to release NativePixmap in CreateVASurfaceForPixmap(). This CL also introduces CreateVASurfaceForVideoFrame() to gather together code represented in multiple call sites. Bug: 1001413 Test: tast run video.DecodeAccel* Test: tast run camera.EncodeAccelJPEG Test: tast run camera.DecodeAccelJPEG Change-Id: Iaab8923a07d722a0851a07956dafb1ed70fa5c6c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787493 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by:
Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#697118}
cc025eea