diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-29 12:09:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-29 16:46:07 +0000 |
commit | e7d30484ea8a5677a9403ccd23a9c0961df62ccd (patch) | |
tree | 140df99fdbf67a023fa0b31223b9c5169774f29f /src/gpu/GrPipeline.cpp | |
parent | 4a24e10a0b805af6106dd8f7225c10a703696245 (diff) |
Remove GrPipelineOptimizations computation from GrPipeline::init and nest in GrMeshDrawOp.
Change-Id: I4a702c83857606c1cb050294c408922eef5769ea
Reviewed-on: https://skia-review.googlesource.com/10414
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.cpp')
-rw-r--r-- | src/gpu/GrPipeline.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp index d8f7fbdbf8..0a4a36c817 100644 --- a/src/gpu/GrPipeline.cpp +++ b/src/gpu/GrPipeline.cpp @@ -18,7 +18,7 @@ #include "ops/GrOp.h" -GrPipelineOptimizations GrPipeline::init(const InitArgs& args) { +void GrPipeline::init(const InitArgs& args) { SkASSERT(args.fAnalysis); SkASSERT(args.fRenderTarget); @@ -106,21 +106,6 @@ GrPipelineOptimizations GrPipeline::init(const InitArgs& args) { fFragmentProcessors[currFPIdx].reset(fp); } } - - // Setup info we need to pass to GrPrimitiveProcessors that are used with this GrPipeline. - GrPipelineOptimizations optimizations; - optimizations.fFlags = 0; - if (GrColor_ILLEGAL != overrideColor) { - optimizations.fFlags |= GrPipelineOptimizations::kUseOverrideColor_Flag; - optimizations.fOverrideColor = overrideColor; - } - if (args.fAnalysis->usesLocalCoords()) { - optimizations.fFlags |= GrPipelineOptimizations::kReadsLocalCoords_Flag; - } - if (args.fAnalysis->isCompatibleWithCoverageAsAlpha()) { - optimizations.fFlags |= GrPipelineOptimizations::kCanTweakAlphaForCoverage_Flag; - } - return optimizations; } static void add_dependencies_for_processor(const GrFragmentProcessor* proc, GrRenderTarget* rt) { |