vaapi: fold wrapper's CreateUnownedSurface() into caller
This CL folds the method VaapiWrapper::CreateUnownedSurface() into its only caller. This nicely cuts the amount of lines, reduces the scope of the |va_lock_|, and improves error mgmt by only having one place for VA_SUCCESS_OR_RETURN (because the VASurface ctor cannot fail). Also vavda's CloseGpuMemoryBufferHandle is moved to the unnamed namespace. Bug: 822346 Cq-Include-Trybots: luci.chromium.try:linux_optional_gpu_tests_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I7aa690e3d3976540f2edf07600511ca65f76b6f0 Reviewed-on: https://chromium-review.googlesource.com/964591 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#544290}
Showing
Please register or sign in to comment