diff options
author | Brian Salomon <bsalomon@google.com> | 2016-10-05 12:09:26 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-05 16:43:42 +0000 |
commit | 9b345e3615a19f72ecae897c328a64662caf1370 (patch) | |
tree | aaa060fdee1cb8f91c268ea475ae6e7ddef0597a /src/gpu/GrDefaultGeoProcFactory.cpp | |
parent | ef4ab9d5aaf90f0881927e0e940a48584f7fa60f (diff) |
Make local coords be highp in default geometry processor
This fixes some regressions on the Nexus 10 that were introduced when the device coordinate feature was removed from GrCoordTransform.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2987
Change-Id: Ib0286b1e056d6d8f875a45beee8b0eda85dc1382
Reviewed-on: https://skia-review.googlesource.com/2987
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrDefaultGeoProcFactory.cpp')
-rw-r--r-- | src/gpu/GrDefaultGeoProcFactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrDefaultGeoProcFactory.cpp b/src/gpu/GrDefaultGeoProcFactory.cpp index 497f6b76d5..7d89f2727b 100644 --- a/src/gpu/GrDefaultGeoProcFactory.cpp +++ b/src/gpu/GrDefaultGeoProcFactory.cpp @@ -222,7 +222,8 @@ private: fInColor = &this->addVertexAttrib("inColor", kVec4ub_GrVertexAttribType); } if (hasExplicitLocalCoords) { - fInLocalCoords = &this->addVertexAttrib("inLocalCoord", kVec2f_GrVertexAttribType); + fInLocalCoords = &this->addVertexAttrib("inLocalCoord", kVec2f_GrVertexAttribType, + kHigh_GrSLPrecision); this->setHasExplicitLocalCoords(); } if (hasCoverage) { |