Lines Matching refs:fragBuilder
36 GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode() local
47 fragBuilder->codeAppendf("float2 coord = %s - float2(0.5);", args.fSampleCoord); in emitCode()
48 fragBuilder->codeAppend("half2 f = half2(fract(coord));"); in emitCode()
49 fragBuilder->codeAppend("coord += 0.5 - f;"); in emitCode()
50 fragBuilder->codeAppendf("half4 wx = %s * half4(1.0, f.x, f.x * f.x, f.x * f.x * f.x);", in emitCode()
52 fragBuilder->codeAppendf("half4 wy = %s * half4(1.0, f.y, f.y * f.y, f.y * f.y * f.y);", in emitCode()
54 fragBuilder->codeAppend("half4 rowColors[4];"); in emitCode()
61 fragBuilder->codeAppendf("rowColors[%d] = %s;", x, childStr.c_str()); in emitCode()
63 fragBuilder->codeAppendf( in emitCode()
68 fragBuilder->codeAppend( in emitCode()
72 fragBuilder->codeAppendf("float coord = %s.%s - 0.5;", args.fSampleCoord, d); in emitCode()
73 fragBuilder->codeAppend("half f = half(fract(coord));"); in emitCode()
74 fragBuilder->codeAppend("coord += 0.5 - f;"); in emitCode()
75 fragBuilder->codeAppend("half f2 = f * f;"); in emitCode()
76 fragBuilder->codeAppendf("half4 w = %s * half4(1.0, f, f2, f2 * f);", coeffs); in emitCode()
77 fragBuilder->codeAppend("half4 c[4];"); in emitCode()
86 fragBuilder->codeAppendf("c[%d] = %s;", i, childStr.c_str()); in emitCode()
88 fragBuilder->codeAppend( in emitCode()
95 fragBuilder->codeAppend("bicubicColor = saturate(bicubicColor);"); in emitCode()
98 fragBuilder->codeAppend( in emitCode()
102 fragBuilder->codeAppendf("return bicubicColor;"); in emitCode()