Index: src/gpu/effects/GrBezierEffect.cpp |
diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp |
index 1904b203dfb9e3d91a3dd1769e0a40ae7acad28c..1894192d5888b25fb8cd7792d452e5bc815159a1 100644 |
--- a/src/gpu/effects/GrBezierEffect.cpp |
+++ b/src/gpu/effects/GrBezierEffect.cpp |
@@ -263,10 +263,9 @@ GrConicEffect::GrConicEffect(GrColor color, const SkMatrix& viewMatrix, uint8_t |
, fCoverageScale(coverage) |
, fEdgeType(edgeType) { |
this->initClassID<GrConicEffect>(); |
- fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType, |
- kHigh_GrSLPrecision)); |
- fInConicCoeffs = &this->addVertexAttrib(Attribute("inConicCoeffs", |
- kVec4f_GrVertexAttribType)); |
+ fInPosition = &this->addVertexAttrib("inPosition", kVec2f_GrVertexAttribType, |
+ kHigh_GrSLPrecision); |
+ fInConicCoeffs = &this->addVertexAttrib("inConicCoeffs", kVec4f_GrVertexAttribType); |
} |
////////////////////////////////////////////////////////////////////////////// |
@@ -480,10 +479,9 @@ GrQuadEffect::GrQuadEffect(GrColor color, const SkMatrix& viewMatrix, uint8_t co |
, fCoverageScale(coverage) |
, fEdgeType(edgeType) { |
this->initClassID<GrQuadEffect>(); |
- fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType, |
- kHigh_GrSLPrecision)); |
- fInHairQuadEdge = &this->addVertexAttrib(Attribute("inHairQuadEdge", |
- kVec4f_GrVertexAttribType)); |
+ fInPosition = &this->addVertexAttrib("inPosition", kVec2f_GrVertexAttribType, |
+ kHigh_GrSLPrecision); |
+ fInHairQuadEdge = &this->addVertexAttrib("inHairQuadEdge", kVec4f_GrVertexAttribType); |
} |
////////////////////////////////////////////////////////////////////////////// |
@@ -708,10 +706,9 @@ GrCubicEffect::GrCubicEffect(GrColor color, const SkMatrix& viewMatrix, |
, fViewMatrix(viewMatrix) |
, fEdgeType(edgeType) { |
this->initClassID<GrCubicEffect>(); |
- fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType, |
- kHigh_GrSLPrecision)); |
- fInCubicCoeffs = &this->addVertexAttrib(Attribute("inCubicCoeffs", |
- kVec4f_GrVertexAttribType)); |
+ fInPosition = &this->addVertexAttrib("inPosition", kVec2f_GrVertexAttribType, |
+ kHigh_GrSLPrecision); |
+ fInCubicCoeffs = &this->addVertexAttrib("inCubicCoeffs", kVec4f_GrVertexAttribType); |
} |
////////////////////////////////////////////////////////////////////////////// |