diff options
author | 2017-03-29 14:25:04 -0400 | |
---|---|---|
committer | 2017-03-29 19:05:06 +0000 | |
commit | 1c6025cc9da4a4f3a8ad16dde2ae8dcf120ed270 (patch) | |
tree | f9d56e3c06726f2b1e69a6532a301b2dd1621533 /src/gpu/GrPipeline.h | |
parent | 978533c302bc53a26980c96f8a348ae7eb9e3862 (diff) |
Make analysis optional to GrPipeline::init().
GrXPFactory::createXferProcessor now takes GrPipelineAnalysisColor and GrPipelineAnalysisCoverage rather than GrProcessorSet::FragmentProcessorAnalysis.
This will make it so ops do not have to retain the analysis or rerun it to create pipelines at flush time.
Change-Id: Ib28ba65de425b20c2647329275f209aec168c3df
Reviewed-on: https://skia-review.googlesource.com/10474
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r-- | src/gpu/GrPipeline.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h index 7c861b2c1e..3802faaa30 100644 --- a/src/gpu/GrPipeline.h +++ b/src/gpu/GrPipeline.h @@ -57,7 +57,10 @@ public: uint32_t fFlags = 0; GrDrawFace fDrawFace = GrDrawFace::kBoth; const GrProcessorSet* fProcessors = nullptr; - const GrProcessorSet::FragmentProcessorAnalysis* fAnalysis; + GrPipelineAnalysisColor fInputColor; + GrPipelineAnalysisCoverage fInputCoverage = GrPipelineAnalysisCoverage::kNone; + // This is only used for GrMeshDrawOp's legacy pipeline creation system. + const GrProcessorSet::FragmentProcessorAnalysis* fAnalysis = nullptr; const GrUserStencilSettings* fUserStencil = &GrUserStencilSettings::kUnused; const GrAppliedClip* fAppliedClip = nullptr; GrRenderTarget* fRenderTarget = nullptr; |