Use float math in color_utils.cc
Switch from double to float in color_utils.cc. The HSL struct and CalculateBoringScore still use double in their API because changing those requires enough changes to justify being done in a different CL. Note that SkColorToRgbaString intentionally uses a double precision constant for 255 so that the calculation is done to double precision so that spurious rounding in the result string is avoided. Bug: 863135 Change-Id: Id5b678ed6e1c40475ec516bde2c902ba27bb783d Reviewed-on: https://chromium-review.googlesource.com/1135550 Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Reviewed-by:
Mathieu Perreault <mathp@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#578543}
Showing
This diff is collapsed.
Please register or sign in to comment