Ignore fill when stroke & filling convex line-only paths
authorrobertphillips <robertphillips@google.com>
Fri, 26 Aug 2016 12:30:19 +0000 (05:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 26 Aug 2016 12:30:19 +0000 (05:30 -0700)
commitad2344693c70f13d5e4216df8458b4d907395bde
tree6e4ce1773716748290645e5e18eeb91b723bb5c3
parentcc319b95a58ae15e88c3c028b8726e7cab9121ff
Ignore fill when stroke & filling convex line-only paths

This seems to work well for miter and bevel joins with the resulting stroke and fill path remaining convex. There seems to be an issue with round joins where the outer generated shell is usually not convex. Without this CL the resulting stroke & filled paths are always concave.

Perf-wise (on Windows):

convex-lineonly-paths-stroke-and-fill bench

(in ms)   w/o   w/CL    %decrease

8888      2.88  2.01      30.2

gpu       4.4   1.38      68.6

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2275243003

Review-Url: https://codereview.chromium.org/2275243003
gm/convex_all_line_paths.cpp
src/core/SkStroke.cpp