Descriptionincrease coverage of SkPath.cpp, remove unused code
Using Mike Klein's excellent coverage tool, increase the
unit testing of SkPath.cpp from 70% to 95%.
Along the way, determined that these functions were not
maintained or used:
SkPath::pathTo
SkPath::contains
as well as a large block of SkPath::cheapGetDirection().
Changed SkPath::validate() to permit infinities in
the path data points.
Fixed errors in preserving direction.
Fixed error setting direction when convexity is unknown.
Added missing conic to moveTo only detector.
BUG=
Committed: http://code.google.com/p/skia/source/detail?r=12291
Patch Set 1 #Patch Set 2 : remove dead code #
Total comments: 9
Patch Set 3 : revert float to scalar #Patch Set 4 : revert more float to scalar #Patch Set 5 : restore contains #Patch Set 6 : add test for contains; remove unused code #
Total comments: 2
Patch Set 7 : increase coverage above 95%; add missing conic case #
Messages
Total messages: 10 (0 generated)
|