Use SDF path miplevels based on the original path's size.
authorJim Van Verth <jvanverth@google.com>
Fri, 10 Feb 2017 20:24:39 +0000 (15:24 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 10 Feb 2017 21:26:33 +0000 (21:26 +0000)
commit6e83b13c226246041a33dc7bf0e92626581b5e79
tree555310ae893c0e52c440e1163bb43dace38e4afa
parent368af4605db18f7197ed3289d2ebdc93bbb5879b
Use SDF path miplevels based on the original path's size.

Should produce sharper results than arbitrary fixed sizes.
Adds a new test to pathfill GM.

BUG=chromium:682918

Change-Id: I5a394098665d01e995a244fde278236f1471e6c9
Reviewed-on: https://skia-review.googlesource.com/8328
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
gm/convexpaths.cpp
gm/pathfill.cpp
src/core/SkMathPriv.h
src/gpu/ops/GrAADistanceFieldPathRenderer.cpp