| Index: src/gpu/glsl/GrGLSLXferProcessor.cpp
|
| diff --git a/src/gpu/glsl/GrGLSLXferProcessor.cpp b/src/gpu/glsl/GrGLSLXferProcessor.cpp
|
| index 7382660f426e2baf3ce5e7b48d2c24edca4ff046..b6af968651aade4a68c5a55b5becd7b6496d8ce1 100644
|
| --- a/src/gpu/glsl/GrGLSLXferProcessor.cpp
|
| +++ b/src/gpu/glsl/GrGLSLXferProcessor.cpp
|
| @@ -63,23 +63,11 @@ void GrGLSLXferProcessor::emitCode(const EmitArgs& args) {
|
| this->emitBlendCodeForDstRead(args.fPB,
|
| fragBuilder,
|
| args.fInputColor,
|
| + args.fInputCoverage,
|
| dstColor,
|
| args.fOutputPrimary,
|
| + args.fOutputSecondary,
|
| args.fXP);
|
| -
|
| - // Apply coverage.
|
| - if (args.fXP.dstReadUsesMixedSamples()) {
|
| - if (args.fInputCoverage) {
|
| - fragBuilder->codeAppendf("%s *= %s;", args.fOutputPrimary, args.fInputCoverage);
|
| - fragBuilder->codeAppendf("%s = %s;", args.fOutputSecondary, args.fInputCoverage);
|
| - } else {
|
| - fragBuilder->codeAppendf("%s = vec4(1.0);", args.fOutputSecondary);
|
| - }
|
| - } else if (args.fInputCoverage) {
|
| - fragBuilder->codeAppendf("%s = %s * %s + (vec4(1.0) - %s) * %s;",
|
| - args.fOutputPrimary, args.fInputCoverage,
|
| - args.fOutputPrimary, args.fInputCoverage, dstColor);
|
| - }
|
| }
|
|
|
| void GrGLSLXferProcessor::setData(const GrGLSLProgramDataManager& pdm, const GrXferProcessor& xp) {
|
|
|