aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrBitmapTextGeoProc.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-08-07 13:34:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-07 19:51:30 +0000
commit95db9b3cb1286e2c88e12035fd96fd047ea3582d (patch)
tree98495324bf943d6dc69052dd769cf0c551914368 /src/gpu/effects/GrBitmapTextGeoProc.cpp
parente0996536a823eef2091c4b601a54f5071e28d8ce (diff)
Make bmp text position attribute be highp
Bug: chromium:746290 Change-Id: I90968ab3633fb50a13087500a7df7fb8adbf2af8 Reviewed-on: https://skia-review.googlesource.com/31423 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/effects/GrBitmapTextGeoProc.cpp')
-rw-r--r--src/gpu/effects/GrBitmapTextGeoProc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp
index 151c529ef8..8bba1d7237 100644
--- a/src/gpu/effects/GrBitmapTextGeoProc.cpp
+++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp
@@ -125,7 +125,8 @@ GrBitmapTextGeoProc::GrBitmapTextGeoProc(GrColor color,
, fInColor(nullptr)
, fMaskFormat(format) {
this->initClassID<GrBitmapTextGeoProc>();
- fInPosition = &this->addVertexAttrib("inPosition", kVec2f_GrVertexAttribType);
+ fInPosition =
+ &this->addVertexAttrib("inPosition", kVec2f_GrVertexAttribType, kHigh_GrSLPrecision);
bool hasVertexColor = kA8_GrMaskFormat == fMaskFormat ||
kA565_GrMaskFormat == fMaskFormat;