Lines Matching refs:fragBuilder
67 static void add_overdraw_code(GrGLSLFragmentBuilder* fragBuilder, in add_overdraw_code() argument
80 fragBuilder->emitFunction(kVec4f_GrSLType, in add_overdraw_code()
96 fragBuilder->codeAppend("int nextIdx;"); in add_overdraw_code()
97 fragBuilder->codeAppendf("vec4 dst = %s;", dstColor); in add_overdraw_code()
98 fragBuilder->codeAppend("if (dst.r < 0.25) { nextIdx = 1; }"); in add_overdraw_code()
100 fragBuilder->codeAppend("else if (dst.g < 0.0977) { nextIdx = 10; }"); in add_overdraw_code()
101 fragBuilder->codeAppend("else if (dst.b > 0.08) { nextIdx = 8 - int(6.0 * dst.b + 0.5); }"); in add_overdraw_code()
102 fragBuilder->codeAppend("else { nextIdx = 11 - int(5.7 * dst.g + 0.5); }"); in add_overdraw_code()
103 fragBuilder->codeAppendf("%s = %s(float(nextIdx));", outputColor, colorTableFuncName.c_str()); in add_overdraw_code()
109 GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; in emitCode() local
113 add_overdraw_code(fragBuilder, dstColor.c_str(), args.fOutputColor); in emitCode()
181 void emitBlendCodeForDstRead(GrGLSLXPFragmentBuilder* fragBuilder, in emitBlendCodeForDstRead() argument
189 add_overdraw_code(fragBuilder, dstColor, outColor); in emitBlendCodeForDstRead()
192 INHERITED::DefaultCoverageModulation(fragBuilder, srcCoverage, dstColor, outColor, in emitBlendCodeForDstRead()