Lines Matching refs:srcColor
238 static void emit_advanced_xfermode_code(GrGLSLFragmentBuilder* fsBuilder, const char* srcColor,
241 SkASSERT(srcColor);
246 outputColor, srcColor, srcColor, dstColor);
251 hard_light(fsBuilder, outputColor, dstColor, srcColor);
257 srcColor, dstColor, srcColor,
258 dstColor, srcColor, dstColor);
264 srcColor, dstColor, srcColor,
265 dstColor, srcColor, dstColor);
268 color_dodge_component(fsBuilder, outputColor, srcColor, dstColor, 'r');
269 color_dodge_component(fsBuilder, outputColor, srcColor, dstColor, 'g');
270 color_dodge_component(fsBuilder, outputColor, srcColor, dstColor, 'b');
273 color_burn_component(fsBuilder, outputColor, srcColor, dstColor, 'r');
274 color_burn_component(fsBuilder, outputColor, srcColor, dstColor, 'g');
275 color_burn_component(fsBuilder, outputColor, srcColor, dstColor, 'b');
278 hard_light(fsBuilder, outputColor, srcColor, dstColor);
282 fsBuilder->codeAppendf("%s.rgba = %s;", outputColor, srcColor);
284 soft_light_component_pos_dst_alpha(fsBuilder, outputColor, srcColor, dstColor, 'r');
285 soft_light_component_pos_dst_alpha(fsBuilder, outputColor, srcColor, dstColor, 'g');
286 soft_light_component_pos_dst_alpha(fsBuilder, outputColor, srcColor, dstColor, 'b');
292 outputColor, srcColor, dstColor, srcColor, dstColor,
293 dstColor, srcColor);
298 outputColor, dstColor, srcColor, dstColor, srcColor);
304 outputColor, srcColor, dstColor, dstColor, srcColor,
305 srcColor, dstColor);
313 dstColor, srcColor);
316 outputColor, setLum.c_str(), setSat.c_str(), srcColor,
319 outputColor, srcColor, dstColor, dstColor, srcColor);
328 dstColor, srcColor);
331 outputColor, setLum.c_str(), setSat.c_str(), srcColor,
334 outputColor, srcColor, dstColor, dstColor, srcColor);
342 srcColor, dstColor);
344 outputColor, setLum.c_str(), dstColor, srcColor);
346 outputColor, srcColor, dstColor, dstColor, srcColor);
354 srcColor, dstColor);
356 outputColor, setLum.c_str(), dstColor, srcColor);
358 outputColor, srcColor, dstColor, dstColor, srcColor);
417 void GrGLSLBlend::AppendMode(GrGLSLFragmentBuilder* fsBuilder, const char* srcColor,
425 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcColor, dstColor,
428 if(!append_porterduff_term(fsBuilder, dstCoeff, dstColor, srcColor, dstColor, didAppend)) {
433 emit_advanced_xfermode_code(fsBuilder, srcColor, dstColor, outColor, mode);
437 void GrGLSLBlend::AppendRegionOp(GrGLSLFragmentBuilder* fsBuilder, const char* srcColor,
474 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcColor, dstColor,
477 if(!append_porterduff_term(fsBuilder, dstCoeff, dstColor, srcColor, dstColor, didAppend)) {