media/gpu/v4l2: pass format to AllocatedSizeFromV4L2Format by reference
AllocatedSizeFromV4L2Format() returns the calculated size of a buffer, being given its V4L2 format. This method does not modify the format whatsoever ; thus, pass it as const reference in order to avoid an unneeded copy. Bug: None Test: video_decode_accelerator_tests passes on Kevin. Change-Id: Ifd0bf98022efe44a6b72f6c684a452c969add83d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871490 Auto-Submit: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#708069}
Showing
Please register or sign in to comment