diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-04 13:25:17 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-05 20:01:26 +0000 |
commit | ecea86af4170a52cda5c64dd187ddbe157a682ee (patch) | |
tree | e1d59a210029965ec825a43e809a797ba03b88a6 /src/gpu/ops/GrLatticeOp.cpp | |
parent | ef6bbbd06374cf7ef175c780ec9ac87c43386532 (diff) |
Cleanup ops that are storing GrPipelineOptimizations.
This is being stored and passed in places where it is unneeded or only 1 or 2 of its flags are needed.
Change-Id: Ifded9e645c0380e792708064ad69449653668acf
Reviewed-on: https://skia-review.googlesource.com/6583
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/ops/GrLatticeOp.cpp')
-rw-r--r-- | src/gpu/ops/GrLatticeOp.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/ops/GrLatticeOp.cpp b/src/gpu/ops/GrLatticeOp.cpp index 9141b34fe2..93c6f0f649 100644 --- a/src/gpu/ops/GrLatticeOp.cpp +++ b/src/gpu/ops/GrLatticeOp.cpp @@ -68,7 +68,6 @@ private: void applyPipelineOptimizations(const GrPipelineOptimizations& analysioptimizations) override { analysioptimizations.getOverrideColorIfSet(&fPatches[0].fColor); - fOptimizations = analysioptimizations; } void onPrepareDraws(Target* target) const override { @@ -146,13 +145,6 @@ private: SkASSERT(this->fImageWidth == that->fImageWidth && this->fImageHeight == that->fImageHeight); - // In the event of two ops, one who can tweak, one who cannot, we just fall back to not - // tweaking. - if (fOptimizations.canTweakAlphaForCoverage() && - !that->fOptimizations.canTweakAlphaForCoverage()) { - fOptimizations = that->fOptimizations; - } - fPatches.move_back_n(that->fPatches.count(), that->fPatches.begin()); this->joinBounds(*that); return true; @@ -165,7 +157,6 @@ private: GrColor fColor; }; - GrPipelineOptimizations fOptimizations; int fImageWidth; int fImageHeight; SkSTArray<1, Patch, true> fPatches; |