media/gpu/v4l2VEA: Replace visible_size with visible_rect
gfx::Rect is a more reasonable struct to stand for a dimension to be encoded in VideoEncodeAccelerator than gfx::Size. It is because the area of VideoFrame to be encoded does not necessarily begin with (0, 0). This CL basically changes the type to gfx::Rect keeping the logic of V4L2VEA and the assumption about the area origin. Bug: 1033799 Test: video.EncodeAccel* on kukui Change-Id: Ie7a0b6bbdb9a66bfd1b85c9afa5bfff80779ee81 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2010508 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by:Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#735769}
Showing
This diff is collapsed.
Please register or sign in to comment