| Index: src/gpu/GrAARectRenderer.cpp
|
| diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp
|
| index b2052a8d286e67bf2bff6432b2361b1231b991dd..a6b8d97c0b2c8b165ce90f09bfe0cdb93a778cbd 100644
|
| --- a/src/gpu/GrAARectRenderer.cpp
|
| +++ b/src/gpu/GrAARectRenderer.cpp
|
| @@ -84,9 +84,9 @@ public:
|
| "\tcoverage = coverage*scaleH*clamp((%s.w-abs(%s.y))/spanH, 0.0, 1.0);\n",
|
| fsRectName, fsRectName);
|
|
|
| - SkString modulate;
|
| - GrGLSLModulatef<4>(&modulate, inputColor, "coverage");
|
| - builder->fsCodeAppendf("\t%s = %s;\n", outputColor, modulate.c_str());
|
| +
|
| + builder->fsCodeAppendf("\t%s = %s;\n", outputColor,
|
| + (GrGLSLExpr<4>(inputColor) * GrGLSLExpr<1>("coverage")).c_str());
|
| }
|
|
|
| static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) {
|
| @@ -217,9 +217,9 @@ public:
|
| "\tcoverage = coverage*scaleH*clamp((%s.y-perpDot)/spanH, 0.0, 1.0);\n",
|
| fsWidthHeightName);
|
|
|
| - SkString modulate;
|
| - GrGLSLModulatef<4>(&modulate, inputColor, "coverage");
|
| - builder->fsCodeAppendf("\t%s = %s;\n", outputColor, modulate.c_str());
|
| +
|
| + builder->fsCodeAppendf("\t%s = %s;\n", outputColor,
|
| + (GrGLSLExpr<4>(inputColor) * GrGLSLExpr<1>("coverage")).c_str());
|
| }
|
|
|
| static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) {
|
|
|