Commit a5e4fd56 authored by Miguel Casas's avatar Miguel Casas Committed by Commit Bot

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: default avatarAndres Calderon Jaramillo <andrescj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726684}
parent 79cb81b6
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment