Use unorm shorts for texture coordinates when rendering text.
authorjvanverth <jvanverth@google.com>
Mon, 22 Feb 2016 19:25:32 +0000 (11:25 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Feb 2016 19:25:32 +0000 (11:25 -0800)
commit7023a00c35d904e4ccff09c377e9ba26abba6181
tree33a9241b646576bd5c66b88623c1db8d925d1274
parent01e583807618038a578a3b07cfad3101d24115c7
Use unorm shorts for texture coordinates when rendering text.

There are a couple of reasons for this:
- Vulkan does not guarantee conversions from integral vertex attributes
  to floating point shader variables
- This may be faster and more precise on some platforms, as it avoids
  the aforementioned conversion and changes a multiply by a very small
  value to a multiply by a medium-sized value.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1713693002
TBR=bsalomon@google.com

Committed: https://skia.googlesource.com/skia/+/e507ff0460f4f878214b9454fb5b9ab8d64d8063

Review URL: https://codereview.chromium.org/1713693002
include/gpu/GrTypesPriv.h
src/gpu/GrBatchAtlas.h
src/gpu/GrTest.cpp
src/gpu/effects/GrBitmapTextGeoProc.cpp
src/gpu/effects/GrDistanceFieldGeoProc.cpp
src/gpu/gl/GrGLVertexArray.cpp
src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp
src/gpu/text/GrBatchFontCache.cpp
src/gpu/text/GrBatchFontCache.h