Refactor draw_utils::GetSurroundingRect() to not take pp::Rect.
Currently draw_utils::GetSurroundingRect() takes a pp::Rect object and uses only the y-component and height, which means it uses only half of the structs attributes. This refactor makes it so GetSurroundingRect() just takes |page_y| and |page_height| as individual int values, reducing the amount of unnecessary data sent. Change-Id: Ie201b4e2d5d6f3c246173782af43cb44890014ad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715789Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Jeremy Chinsen <chinsenj@google.com> Cr-Commit-Position: refs/heads/master@{#680132}
Showing
Please register or sign in to comment