Chromium Code Reviews| Index: src/effects/SkArithmeticMode.cpp |
| diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp |
| index fd3a683fbb92bc009c12daa290366da6724bf210..83b24cc80e8b9699ba305b3a09dcd9cc86919fa0 100644 |
| --- a/src/effects/SkArithmeticMode.cpp |
| +++ b/src/effects/SkArithmeticMode.cpp |
| @@ -368,7 +368,7 @@ void GrGLArithmeticEffect::emitCode(GrGLShaderBuilder* builder, |
| // We don't try to optimize for this case at all |
| if (NULL == inputColor) { |
| - builder->fsCodeAppendf("\t\tconst vec4 src = %s;\n", GrGLSLOnesVecf(4)); |
| + builder->fsCodeAppendf("\t\tconst vec4 src = %s;\n", GrGLSLExpr<4>(1).c_str()); |
|
bsalomon
2013/10/02 15:18:04
Hmm.. This feels a little bit less readable.
I'd
Kimmo Kinnunen
2013/10/08 12:18:29
I fixed this and the other similar instance by jus
bsalomon
2013/10/08 14:45:27
Yes, that seems like the most readable to me.
|
| } else { |
| builder->fsCodeAppendf("\t\tvec4 src = %s;\n", inputColor); |
| if (gUseUnpremul) { |