Index: src/gpu/GrOvalRenderer.cpp |
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp |
index 66ca05351a860755eb284cdea6e82935aecea7c8..d24702e3beb2aacf4e8fbaeb36257360380ed27a 100644 |
--- a/src/gpu/GrOvalRenderer.cpp |
+++ b/src/gpu/GrOvalRenderer.cpp |
@@ -117,9 +117,8 @@ public: |
builder->fsCodeAppend("\tedgeAlpha *= innerAlpha;\n"); |
} |
- 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()); |
} |
static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { |
@@ -252,9 +251,8 @@ public: |
builder->fsCodeAppend("\tedgeAlpha *= clamp(0.5+test*invlen, 0.0, 1.0);\n"); |
} |
- 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()); |
} |
static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { |
@@ -413,9 +411,8 @@ public: |
builder->fsCodeAppend("\tedgeAlpha *= clamp(0.5+test*invlen, 0.0, 1.0);\n"); |
} |
- 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()); |
} |
static inline EffectKey GenKey(const GrDrawEffect& drawEffect, const GrGLCaps&) { |