DescriptionUse SkTMin and SkTMax for clamp/pin.
This changes SkScalarClampMax and SkScalarPin to use SkTMin and SkTMax.
This change allows compilers to more easily transform these operations
into fast max/min operarations as opposed to conditional branches.
Committed: https://skia.googlesource.com/skia/+/167eb17cd6654a0ab6f7c544441a0defa88e3827
Patch Set 1 #
Total comments: 2
Patch Set 2 : State type and auto convert constant. #Messages
Total messages: 16 (5 generated)
|