Commit cfc2c104 authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Commit Bot

media/gpu/VaapiIP: Return on failure of VaapiWrapper::BlitSurface()

Bug: 1011281
Test: IPTest on atlas
Change-Id: Ibbca4c02a28cf04cbfd3fa38769205b4f749dc58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975380Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726275}
parent 4f0e01ca
...@@ -181,8 +181,12 @@ void VaapiImageProcessor::Process(scoped_refptr<VideoFrame> input_frame, ...@@ -181,8 +181,12 @@ void VaapiImageProcessor::Process(scoped_refptr<VideoFrame> input_frame,
return; return;
} }
// VA-API performs pixel format conversion and scaling without any filters. // VA-API performs pixel format conversion and scaling without any filters.
vaapi_wrapper_->BlitSurface(std::move(src_va_surface), if (vaapi_wrapper_->BlitSurface(std::move(src_va_surface),
std::move(dst_va_surface)); std::move(dst_va_surface))) {
// Failed to execute BlitSurface(). Since VaapiWrapper has invoked
// ReportToUMA(), calling error_cb_ here is not needed.
return;
}
std::move(cb).Run(std::move(output_frame)); std::move(cb).Run(std::move(output_frame));
} }
......
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