Use dFdx in Vulkan to address distance field issues.
authorjvanverth <jvanverth@google.com>
Wed, 20 Jul 2016 19:22:14 +0000 (12:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 Jul 2016 19:22:14 +0000 (12:22 -0700)
commite499adf328bd7fc15a755325749f54c2b7e71f54
tree9623dc9680fb25ca8d4c32fb0dc2bdb4c6766915
parent566ea9b9fc6746ffad390a4029e56d985eb2aec8
Use dFdx in Vulkan to address distance field issues.

On Nexus Player and occasionally Nexus 5x we get transparent boxes around
paths. This appears to be because the dFdy call is not as accurate as
dFdx, which is the opposite of Mali 400. As Mali 400 is not supported with
Vulkan, we can go back to using dFdx in this case.

BUG=skia:5523
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2163213004

Review-Url: https://codereview.chromium.org/2163213004
src/gpu/effects/GrDistanceFieldGeoProc.cpp