Chromium Code Reviews| Index: src/gpu/effects/GrBitmapTextGeoProc.cpp |
| diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp |
| index 2487b65adac7aba1efd966016e3d00aca45222af..13b9dba9299941b9a5ce6260dd26d0e0842db2b4 100644 |
| --- a/src/gpu/effects/GrBitmapTextGeoProc.cpp |
| +++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp |
| @@ -37,7 +37,8 @@ public: |
| GrGLVertToFrag v(kVec2f_GrSLType); |
| pb->addVarying("TextureCoords", &v); |
|
robertphillips
2015/02/13 16:10:42
Don't we have #defines for these ?
Also comment ?
jvanverth1
2015/02/13 19:58:56
Done.
|
| - vsBuilder->codeAppendf("%s = %s;", v.vsOut(), cte.inTextureCoords()->fName); |
| + vsBuilder->codeAppendf("%s = vec2(0.0009765625, 0.00048828125)*%s;", v.vsOut(), |
| + cte.inTextureCoords()->fName); |
| // Setup pass through color |
| this->setupColorPassThrough(pb, local.fInputColorType, args.fOutputColor, cte.inColor(), |
| @@ -122,7 +123,7 @@ GrBitmapTextGeoProc::GrBitmapTextGeoProc(GrColor color, GrTexture* texture, |
| this->setHasVertexColor(); |
| } |
| fInTextureCoords = &this->addVertexAttrib(Attribute("inTextureCoords", |
| - kVec2f_GrVertexAttribType)); |
| + kVec2s_GrVertexAttribType)); |
| this->addTextureAccess(&fTextureAccess); |
| } |