aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-14 16:53:22 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-14 16:53:22 +0000
commita1a097ee814d05a92487d85db8ad02e1d852fd6f (patch)
treedd4e4d3cd19d04ae98723e17f05d63f9a4511749 /tools
parentd296d315c0abc161d589cfaea8fbdc1074617af0 (diff)
increase 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= R=bsalomon@google.com, reed@google.com Author: caryclark@google.com Review URL: https://codereview.chromium.org/65493004 git-svn-id: http://skia.googlecode.com/svn/trunk@12291 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rwxr-xr-xtools/coverage.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/coverage.sh b/tools/coverage.sh
index 3e34806843..8fe75c5cd5 100755
--- a/tools/coverage.sh
+++ b/tools/coverage.sh
@@ -27,5 +27,5 @@ lcov $QUIET --gcov-tool=$GCOV -c -b out/Coverage -d out/Coverage -o /tmp/coverag
lcov $QUIET -a /tmp/baseline -a /tmp/coverage -o /tmp/merged
-genhtml $QUIET /tmp/merged -o out/Coverage/report
+genhtml $QUIET /tmp/merged --legend -o out/Coverage/report
xdg-open out/Coverage/report/index.html