media/gpu/vaapiWrapper: Add WARN_UNUSED_RESULT to critical functions
This adds WARN_UNUSED_RESULT to VaapiWrapper functions whose result should have the critical impact enough to regard its failure as video processing fatal. VaapiVideoDecoder actually doesn't handle the failure of VaapiWrapper::CreateContext. This CL also fixes it. Bug: b:171536540 Test: Build media_unittest and vaapi_unittest Change-Id: Iba6924849bfe8627fd328c3541c7a2c5cb0f0371 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2493742 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by:Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#820164}
Showing
Please register or sign in to comment