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/GrNonAAFillRectPerspectiveOp.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/GrNonAAFillRectPerspectiveOp.cpp')
-rw-r--r-- | src/gpu/ops/GrNonAAFillRectPerspectiveOp.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/ops/GrNonAAFillRectPerspectiveOp.cpp b/src/gpu/ops/GrNonAAFillRectPerspectiveOp.cpp index 284556b112..b919a0dc78 100644 --- a/src/gpu/ops/GrNonAAFillRectPerspectiveOp.cpp +++ b/src/gpu/ops/GrNonAAFillRectPerspectiveOp.cpp @@ -136,7 +136,6 @@ private: void applyPipelineOptimizations(const GrPipelineOptimizations& optimizations) override { optimizations.getOverrideColorIfSet(&fRects[0].fColor); - fOptimizations = optimizations; } void onPrepareDraws(Target* target) const override { @@ -198,13 +197,6 @@ private: return false; } - // 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; - } - fRects.push_back_n(that->fRects.count(), that->fRects.begin()); this->joinBounds(*that); return true; @@ -216,7 +208,6 @@ private: SkRect fLocalRect; }; - GrPipelineOptimizations fOptimizations; SkSTArray<1, RectInfo, true> fRects; bool fHasLocalMatrix; bool fHasLocalRect; |