Lines Matching refs:fragBuilder
21 GrGLSLXPFragmentBuilder* fragBuilder = args.fXPFragBuilder; in emitCode() local
23 const char* dstColor = fragBuilder->dstColor(); in emitCode()
31 fragBuilder->codeAppendf("if (all(lessThanEqual(%s, vec4(0)))) {" in emitCode()
49 const char* fragPos = fragBuilder->fragmentPosition(); in emitCode()
51 fragBuilder->codeAppend("// Read color from copy of the destination.\n"); in emitCode()
52 fragBuilder->codeAppendf("vec2 _dstTexCoord = (%s.xy - %s) * %s;", in emitCode()
56 fragBuilder->codeAppend("_dstTexCoord.y = 1.0 - _dstTexCoord.y;"); in emitCode()
59 fragBuilder->codeAppendf("vec4 %s = ", dstColor); in emitCode()
60 fragBuilder->appendTextureLookup(args.fSamplers[0], "_dstTexCoord", kVec2f_GrSLType); in emitCode()
61 fragBuilder->codeAppend(";"); in emitCode()
64 this->emitBlendCodeForDstRead(fragBuilder, in emitCode()
91 void GrGLSLXferProcessor::DefaultCoverageModulation(GrGLSLXPFragmentBuilder* fragBuilder, in DefaultCoverageModulation() argument
99 fragBuilder->codeAppendf("%s *= %s;", outColor, srcCoverage); in DefaultCoverageModulation()
100 fragBuilder->codeAppendf("%s = %s;", outColorSecondary, srcCoverage); in DefaultCoverageModulation()
102 fragBuilder->codeAppendf("%s = vec4(1.0);", outColorSecondary); in DefaultCoverageModulation()
105 fragBuilder->codeAppendf("%s = %s * %s + (vec4(1.0) - %s) * %s;", in DefaultCoverageModulation()