Index: src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
index 24fe001b06d793af31b0d01d0f80668ceb3d6d22..00713d63513540e433dc7b99a16c350c9521defa 100755 |
--- a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
+++ b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
@@ -212,12 +212,12 @@ GrDistanceFieldTextureEffect::GrDistanceFieldTextureEffect(GrColor color, |
, fInColor(NULL) { |
SkASSERT(!(flags & ~kNonLCD_DistanceFieldEffectMask)); |
this->initClassID<GrDistanceFieldTextureEffect>(); |
- fInPosition = &this->addVertexAttrib(GrAttribute("inPosition", kVec2f_GrVertexAttribType)); |
+ fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType)); |
if (flags & kColorAttr_DistanceFieldEffectFlag) { |
- fInColor = &this->addVertexAttrib(GrAttribute("inColor", kVec4ub_GrVertexAttribType)); |
+ fInColor = &this->addVertexAttrib(Attribute("inColor", kVec4ub_GrVertexAttribType)); |
this->setHasVertexColor(); |
} |
- fInTextureCoords = &this->addVertexAttrib(GrAttribute("inTextureCoords", |
+ fInTextureCoords = &this->addVertexAttrib(Attribute("inTextureCoords", |
kVec2f_GrVertexAttribType)); |
this->addTextureAccess(&fTextureAccess); |
#ifdef SK_GAMMA_APPLY_TO_A8 |
@@ -472,12 +472,12 @@ GrDistanceFieldNoGammaTextureEffect::GrDistanceFieldNoGammaTextureEffect( |
, fInColor(NULL) { |
SkASSERT(!(flags & ~kNonLCD_DistanceFieldEffectMask)); |
this->initClassID<GrDistanceFieldNoGammaTextureEffect>(); |
- fInPosition = &this->addVertexAttrib(GrAttribute("inPosition", kVec2f_GrVertexAttribType)); |
+ fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType)); |
if (flags & kColorAttr_DistanceFieldEffectFlag) { |
- fInColor = &this->addVertexAttrib(GrAttribute("inColor", kVec4ub_GrVertexAttribType)); |
+ fInColor = &this->addVertexAttrib(Attribute("inColor", kVec4ub_GrVertexAttribType)); |
this->setHasVertexColor(); |
} |
- fInTextureCoords = &this->addVertexAttrib(GrAttribute("inTextureCoords", |
+ fInTextureCoords = &this->addVertexAttrib(Attribute("inTextureCoords", |
kVec2f_GrVertexAttribType)); |
this->addTextureAccess(&fTextureAccess); |
} |
@@ -789,8 +789,8 @@ GrDistanceFieldLCDTextureEffect::GrDistanceFieldLCDTextureEffect( |
, fFlags(flags & kLCD_DistanceFieldEffectMask){ |
SkASSERT(!(flags & ~kLCD_DistanceFieldEffectMask) && (flags & kUseLCD_DistanceFieldEffectFlag)); |
this->initClassID<GrDistanceFieldLCDTextureEffect>(); |
- fInPosition = &this->addVertexAttrib(GrAttribute("inPosition", kVec2f_GrVertexAttribType)); |
- fInTextureCoords = &this->addVertexAttrib(GrAttribute("inTextureCoords", |
+ fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType)); |
+ fInTextureCoords = &this->addVertexAttrib(Attribute("inTextureCoords", |
kVec2f_GrVertexAttribType)); |
this->addTextureAccess(&fTextureAccess); |
this->addTextureAccess(&fGammaTextureAccess); |