Change SkUnitScalarClampToByte to more accurate implementation.
authorbenjaminwagner <benjaminwagner@google.com>
Wed, 24 Feb 2016 18:07:52 +0000 (10:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 24 Feb 2016 18:07:52 +0000 (10:07 -0800)
commitf156ea3c3edf4208ebfcb7761135768a840185d0
treebe4d3aa275cb9576e8f851516de9adbc64ce1ce5
parent37198864158b176dcc74b573f204db95a6a4fd2a
Change SkUnitScalarClampToByte to more accurate implementation.

The previous implementation was likely more efficient when SkScalar was SkFixed.

BUG=skia:4632
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1691403002

Review URL: https://codereview.chromium.org/1691403002
include/core/SkColorPriv.h