crosvm/media
Daniel Almeida 667518dbf1 media: libva: allow retrieving a Surface borrow in ReclaimableSurface
Previously, only PictureSync would allow us to retrieve a borrow to the
underlying surface, but this is too restrictive. If we can take the
Surface back by calling take_surface() in PictureReclaimableSurface,
there is no reason not to be able to get a borrow to a Surface as well.
This makes the calling code more ergonomic.

BUG=b:214478588
TEST="cargo build --features=video-decoder,vaapi" successfully builds
the libva crate

Change-Id: I71f9f46e6bac6188c4c3862332c445c68028dbef
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3783006
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-10-12 08:01:45 +00:00
..
ffmpeg Re-enable video-decoder feature 2022-10-06 18:28:56 +00:00
libva media: libva: allow retrieving a Surface borrow in ReclaimableSurface 2022-10-12 08:01:45 +00:00
libvda Modify builds via CROSVM_BUILD_VARIANT env var 2022-10-04 21:23:00 +00:00
vp8 Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00