| Index: src/gpu/batches/GrAnalyticRectBatch.cpp
|
| diff --git a/src/gpu/batches/GrAnalyticRectBatch.cpp b/src/gpu/batches/GrAnalyticRectBatch.cpp
|
| index b3ff50f452e141995774f7d0a8ded076173f3b7c..af3b9fa9d06597feefc27e7c33c0115bc3b24381 100644
|
| --- a/src/gpu/batches/GrAnalyticRectBatch.cpp
|
| +++ b/src/gpu/batches/GrAnalyticRectBatch.cpp
|
| @@ -55,12 +55,11 @@ class RectGeometryProcessor : public GrGeometryProcessor {
|
| public:
|
| RectGeometryProcessor(const SkMatrix& localMatrix) : fLocalMatrix(localMatrix) {
|
| this->initClassID<RectGeometryProcessor>();
|
| - fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType,
|
| - kHigh_GrSLPrecision));
|
| - fInColor = &this->addVertexAttrib(Attribute("inColor", kVec4ub_GrVertexAttribType));
|
| - fInRectEdge = &this->addVertexAttrib(Attribute("inRectEdge", kVec4f_GrVertexAttribType));
|
| - fInWidthHeight = &this->addVertexAttrib(Attribute("inWidthHeight",
|
| - kVec2f_GrVertexAttribType));
|
| + fInPosition = &this->addVertexAttrib("inPosition", kVec2f_GrVertexAttribType,
|
| + kHigh_GrSLPrecision);
|
| + fInColor = &this->addVertexAttrib("inColor", kVec4ub_GrVertexAttribType);
|
| + fInRectEdge = &this->addVertexAttrib("inRectEdge", kVec4f_GrVertexAttribType);
|
| + fInWidthHeight = &this->addVertexAttrib("inWidthHeight", kVec2f_GrVertexAttribType);
|
| }
|
|
|
| bool implementsDistanceVector() const override { return true; };
|
|
|