Change tessellator sweep direction to depend on path aspect ratio.
authorsenorblanco <senorblanco@chromium.org>
Wed, 15 Apr 2015 14:32:27 +0000 (07:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 15 Apr 2015 14:32:27 +0000 (07:32 -0700)
commit6bd5137e11071116fe279e2f26264f01baeff1aa
treebf98409d92456583dd69689ea66c9f97b6d60733
parente16b04aa6041efb6507546547737e9603fa1606e
Change tessellator sweep direction to depend on path aspect ratio.

The tessellating path renderer uses several sweep-line algorithms,
whose sweep direction can be either in X or Y.

It is currently set to in-X at compile time, but a better approach is to
make it runtime-configurable, and use the path aspect ratio as
a heuristic to determine the optimal sweep direction.

BUG=skia:3725

Review URL: https://codereview.chromium.org/1089073002
src/gpu/GrTessellatingPathRenderer.cpp