Tighten up gradient clamp logic.
authorMike Klein <mtklein@chromium.org>
Sat, 6 May 2017 16:45:50 +0000 (12:45 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 8 May 2017 15:17:11 +0000 (15:17 +0000)
commit9bb75afed422f087ee68a53956c46b83c0aade34
tree2a4b360bc25ed7026727e0901cc18cc228824909
parentc2dd5ed93753dc54619fb713ebcf38bd1af08592
Tighten up gradient clamp logic.

This is just a little refactor.  Shouldn't change any logic or pixels.

Change-Id: I782df78f2d693dc7e35c286b049730e763aa3dc8
Reviewed-on: https://skia-review.googlesource.com/15653
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
src/effects/gradients/SkLinearGradient.cpp