Chromium Code Reviews| Index: src/gpu/GrDrawTarget.cpp |
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
| index 01d4f63bc59112a2881cce13f546c6aa9094a04c..769a80fa57963f047b79cb937f73fd0e683c14ab 100644 |
| --- a/src/gpu/GrDrawTarget.cpp |
| +++ b/src/gpu/GrDrawTarget.cpp |
| @@ -538,8 +538,14 @@ bool GrDrawTarget::installPipelineInDrawBatch(const GrPipelineBuilder* pipelineB |
| args.fPipelineBuilder = pipelineBuilder; |
| args.fCaps = this->caps(); |
| args.fScissor = scissor; |
| - args.fColorPOI = pipelineBuilder->colorProcInfo(batch); |
| - args.fCoveragePOI = pipelineBuilder->coverageProcInfo(batch); |
| + GrPipelineOptimizations opt; |
| + batch->getPipelineOptimizations(opt); |
| + opt.fColorPOI.completeCalculations(pipelineBuilder->fColorFragmentProcessors.begin(), |
| + pipelineBuilder->numColorFragmentProcessors()); |
| + opt.fCoveragePOI.completeCalculations(pipelineBuilder->fCoverageFragmentProcessors.begin(), |
| + pipelineBuilder->numCoverageFragmentProcessors()); |
| + args.fColorPOI = opt.fColorPOI; |
|
egdaniel
2015/11/24 00:08:13
shouldn't the CreateArgs just take a GrPipelineOpt
|
| + args.fCoveragePOI = opt.fCoveragePOI; |
| if (!this->setupDstReadIfNecessary(*pipelineBuilder, args.fColorPOI, |
| args.fCoveragePOI, &args.fDstTexture, |
| batch->bounds())) { |