Remove ConvertSizeToDIP() methods.
The Convert*ToDIP() and Convert*ToPixel() functions are problematic in that they hide what decision is being taken in the underlying code when moving from floating point to integer, and consumers should be thinking about what they want for correctness. They also act in inconsistent ways when converting a Rect vs its components. This removes the functions that perform float->int conversions in order to have callers show what they intend to happen and make it clear that data is being lost in some fashion. R=sky@chromium.org Bug: 1130050 Change-Id: I21eb1070750c92f59e89f288f63e385570dc966c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2419621 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#809846}
Showing
Please register or sign in to comment