DescriptionAvoid undefined behavior and enable asserts in ClampTest.
The old code here wasn't being careful to avoid int32_t overflow in slow_check. Fix that.
R_ASSERT hasn't been doing anything for a while. As a result, there are a couple bugs in SkClampRange, marked as such and commented out. The asserts also weren't quite passing, so I fixed them up (allowing 0xFFFF to be considered either as part of the ramp or part of V1.)
BUG=skia:2481
Committed: http://code.google.com/p/skia/source/detail?r=14479
Patch Set 1 #Patch Set 2 : names #Patch Set 3 : remove ubsan #Patch Set 4 : fix test, comment out bugs #Messages
Total messages: 6 (0 generated)
|