VaapiWrapper: homogenize logging macros and add success-logging
This CL modifies the VAAPI error-check and log macros to accept just the name of the function, adding itself the "failed" suffix, or prints out the function name if successful. This allows for quick following up of the VA function interactions. Callsites are adapted. Same thing applies to VA_LOG_ON_ERROR() calls. A singleton LOG_VA_ERROR_AND_REPORT+return is corrected to VA_SUCCESS_OR_RETURN I also took the chance to make VADisplayState::Deinitialize() to return the VAStatus ISO filling an argument var. Change-Id: Idcc24f3c09b79bc3f971ae8c3827aa07082261d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1967217 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#726684}
Showing
This diff is collapsed.
Please register or sign in to comment