clamp to 1.0f in sk_linear_to_srgb_needs_round()
authorMike Klein <mtklein@chromium.org>
Thu, 5 Jan 2017 17:23:37 +0000 (12:23 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 5 Jan 2017 18:56:22 +0000 (18:56 +0000)
commit90798529a02ffd0154c79d647717cf2e5b163158
tree5699a2cfedb69aad3f8cf9f8c6d18f844ce21099
parentd63c10225c008cec541024fd9468a5faf2db1fbc
clamp to 1.0f in sk_linear_to_srgb_needs_round()

It's awkward today that it can go a little over 1.0f.
This is already slow, so a clamp won't slow it signficantly.

Change-Id: I9f882804e3ee949d72b7a05ad2cbac51731f6311
Reviewed-on: https://skia-review.googlesource.com/6617
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
src/core/SkSRGB.h