cleanup style VaapiVP8Accelerator::SubmitDecode
This CL cleans up a bit said method VaapiVP8Accelerator::SubmitDecode():
- Adds {} where needed (either condition or body > 1 line).
- Removes memset() of a struct, instead using = {}, and moves the
variable declaration closer to its use, in some cases.
- s/std::min(std::max())/base::ClampToRange()/
No new functionality intended. This code is only used in ChromeOS.
Bug: 876810
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: If2fb903a427dea2424743217e569d09cdadefe22
Reviewed-on: https://chromium-review.googlesource.com/1188615Reviewed-by:
Dan Sanders <sandersd@chromium.org>
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586020}
Showing
Please register or sign in to comment