| Index: src/effects/SkLumaColorFilter.cpp
|
| diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp
|
| index 7f6dd1b551fe93c31ab144974261af6094b967e5..a131b0f4345513a3671801f82d4491aecfaabe34 100644
|
| --- a/src/effects/SkLumaColorFilter.cpp
|
| +++ b/src/effects/SkLumaColorFilter.cpp
|
| @@ -72,14 +72,14 @@ public:
|
| args.fInputColor = "vec4(1)";
|
| }
|
|
|
| - GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder();
|
| - fsBuilder->codeAppendf("\tfloat luma = dot(vec3(%f, %f, %f), %s.rgb);\n",
|
| - SK_ITU_BT709_LUM_COEFF_R,
|
| - SK_ITU_BT709_LUM_COEFF_G,
|
| - SK_ITU_BT709_LUM_COEFF_B,
|
| - args.fInputColor);
|
| - fsBuilder->codeAppendf("\t%s = vec4(0, 0, 0, luma);\n",
|
| - args.fOutputColor);
|
| + GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
|
| + fragBuilder->codeAppendf("\tfloat luma = dot(vec3(%f, %f, %f), %s.rgb);\n",
|
| + SK_ITU_BT709_LUM_COEFF_R,
|
| + SK_ITU_BT709_LUM_COEFF_G,
|
| + SK_ITU_BT709_LUM_COEFF_B,
|
| + args.fInputColor);
|
| + fragBuilder->codeAppendf("\t%s = vec4(0, 0, 0, luma);\n",
|
| + args.fOutputColor);
|
|
|
| }
|
|
|
|
|