| Index: src/gpu/effects/GrBezierEffect.cpp
|
| diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp
|
| index b3e9f62f69f4c68eb3b11e8a4622293ab10a1170..a6893d5997a8f050df41aed43db9bcab6074ce61 100644
|
| --- a/src/gpu/effects/GrBezierEffect.cpp
|
| +++ b/src/gpu/effects/GrBezierEffect.cpp
|
| @@ -110,9 +110,8 @@ void GrGLConicEffect::emitCode(GrGLShaderBuilder* builder,
|
| }
|
| }
|
|
|
| - SkString modulate;
|
| - GrGLSLModulatef<4>(&modulate, inputColor, "edgeAlpha");
|
| - builder->fsCodeAppendf("\t%s = %s;\n", outputColor, modulate.c_str());
|
| + builder->fsCodeAppendf("\t%s = %s;\n", outputColor,
|
| + (GrGLSLExpr<4>(inputColor) * GrGLSLExpr<1>("edgeAlpha")).c_str());
|
| }
|
|
|
| GrGLEffect::EffectKey GrGLConicEffect::GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) {
|
| @@ -240,9 +239,9 @@ void GrGLQuadEffect::emitCode(GrGLShaderBuilder* builder,
|
| }
|
| }
|
|
|
| - SkString modulate;
|
| - GrGLSLModulatef<4>(&modulate, inputColor, "edgeAlpha");
|
| - builder->fsCodeAppendf("\t%s = %s;\n", outputColor, modulate.c_str());
|
| + builder->fsCodeAppendf("\t%s = %s;\n", outputColor,
|
| + (GrGLSLExpr<4>(inputColor) * GrGLSLExpr<1>("edgeAlpha")).c_str());
|
| +
|
|
|
| vertexBuilder->vsCodeAppendf("\t%s = %s;\n", vsName, attrName->c_str());
|
| }
|
| @@ -385,9 +384,8 @@ void GrGLCubicEffect::emitCode(GrGLShaderBuilder* builder,
|
| }
|
| }
|
|
|
| - SkString modulate;
|
| - GrGLSLModulatef<4>(&modulate, inputColor, "edgeAlpha");
|
| - builder->fsCodeAppendf("\t%s = %s;\n", outputColor, modulate.c_str());
|
| + builder->fsCodeAppendf("\t%s = %s;\n", outputColor,
|
| + (GrGLSLExpr<4>(inputColor) * GrGLSLExpr<1>("edgeAlpha")).c_str());
|
| }
|
|
|
| GrGLEffect::EffectKey GrGLCubicEffect::GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) {
|
|
|