aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/skia_test.cpp
diff options
context:
space:
mode:
authorGravatar xidachen <xidachen@chromium.org>2016-10-06 05:42:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-06 05:42:23 -0700
commit6069ddabd8385ff838236dc25d7354e71649c9f3 (patch)
tree422ce8471b0ace1ec0a4dd9cc078446296350cb5 /tests/skia_test.cpp
parentd207884bf5d163057529c48342b9d4a8b994b982 (diff)
Fix SkPath::arcTo when sweepAngle is tiny and radius is big
In this function, it first check whether this arc is a lone point or not. If not, it converts angles to unit vectors. The problem here is that when the radius is huge and the sweepAngle is small, the function angles_to_unit_vectors() could return a startV ==stopV. When that happens, it will draw a dot at the point that corresponding to the startAngle. This CL adds a special branch for this case, and draw a connecting line between the points at startAngle and endAngle. BUG=640031, skia:5807 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2388833002 Review-Url: https://codereview.chromium.org/2388833002
Diffstat (limited to 'tests/skia_test.cpp')
0 files changed, 0 insertions, 0 deletions