Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: src/gpu/GrDrawTarget.cpp

Issue 1467553002: New API for computing optimization invariants. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.cpp
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index 01d4f63bc59112a2881cce13f546c6aa9094a04c..f9a9a4f5739c2bad4dc08b7eb0cae85040c02b6b 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -538,10 +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);
- if (!this->setupDstReadIfNecessary(*pipelineBuilder, args.fColorPOI,
- args.fCoveragePOI, &args.fDstTexture,
+ batch->getPipelineOptimizations(&args.fOpts);
+ args.fOpts.fColorPOI.completeCalculations(pipelineBuilder->fColorFragmentProcessors.begin(),
+ pipelineBuilder->numColorFragmentProcessors());
+ args.fOpts.fCoveragePOI.completeCalculations(
+ pipelineBuilder->fCoverageFragmentProcessors.begin(),
+ pipelineBuilder->numCoverageFragmentProcessors());
+ if (!this->setupDstReadIfNecessary(*pipelineBuilder, args.fOpts.fColorPOI,
+ args.fOpts.fCoveragePOI, &args.fDstTexture,
batch->bounds())) {
return false;
}
« no previous file with comments | « no previous file | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698