Hi Skia,
Skia's SkPath library does awesome job in most of the cases. However, occasionally we observed weird behaviors (like this post, also
a previous post). I haven't got time to take a deep look into the math behind it. Hopefully it can be fixed...
In the output, the red path diffs the green path and the result is the blue path in the 2nd row. Note the red path as two contours. If I first do Simplify on red path, the result is then expected (3rd and 4th row in the output). However, we observed before that Simplify would do other nasty things so we hesitated to enable it for all cases.
Any help is much appreciated.
Thanks!
-Jiulong