diff options
author | 2016-04-07 09:52:19 -0700 | |
---|---|---|
committer | 2016-04-07 09:52:19 -0700 | |
commit | 93dc33972cd6a418e84270298b856d2de08d9c1c (patch) | |
tree | f03332452116418ca5914d3affea44501f6fd8a9 /src/effects/gradients | |
parent | 70f1a6c64ecb891d77aee576bd045f8b4a03f2a3 (diff) |
For *ToFixed, in debug mode, assert that the value is in range.
Use SkFloatPinToFixed in SkTwoPointConicalGradient.cpp because it is failing in DM. fmalita is working on replacing this code with the 4f version, so I'm not bothering to fix it. (The beginnings of a real fix are in https://codereview.chromium.org/1767163003, which I do not plan to commit.)
BUG=skia:4632
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824733002
Review URL: https://codereview.chromium.org/1824733002
Diffstat (limited to 'src/effects/gradients')
-rw-r--r-- | src/effects/gradients/SkTwoPointConicalGradient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp index f33dcc5a75..3c3180c2c5 100644 --- a/src/effects/gradients/SkTwoPointConicalGradient.cpp +++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp @@ -129,7 +129,7 @@ SkFixed TwoPtRadialContext::nextT() { return TwoPtRadial::kDontDrawT; } } - return SkFloatToFixed(t); + return SkFloatPinToFixed(t); } typedef void (*TwoPointConicalProc)(TwoPtRadialContext* rec, SkPMColor* dstC, |