fix teeny dashed path bug
authorcaryclark <caryclark@google.com>
Fri, 29 Jan 2016 17:54:20 +0000 (09:54 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 Jan 2016 17:54:20 +0000 (09:54 -0800)
commit703348f5fac69dbedf22cda2ce264d2c9683bcf3
tree2d8dffcb9a19873ec2593098ffdc999f05e32526
parentf2b340fc885ad2a12d2d73974eff9c8f4c94192c
fix teeny dashed path bug

If the path dashed is sufficiently small, there may be no
segments generated to dash. Check for an empty segment list.

R=reed@google.com
BUG=skia:4871
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1645613006

Review URL: https://codereview.chromium.org/1645613006
src/core/SkPathMeasure.cpp
tests/DashPathEffectTest.cpp