Revert "Initial definition of fill rect op"
This reverts commit d3c92d9a368be2d1f592bef4e65727721fc3ecf8.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> Initial definition of fill rect op
>
> Bug: skia:
> Change-Id: Ie0c99eb5163501853d1adc885bd3841f90a71924
> Reviewed-on: https://skia-review.googlesource.com/c/163486
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Michael Ludwig <michaelludwig@google.com>
TBR=bsalomon@google.com,csmartdalton@google.com,michaelludwig@google.com
Change-Id: Ib32f91a39d91aeb87982a7b19719485e4a1bf8ae
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/c/173233
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
diff --git a/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp b/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp
index f8a7763..928c4ff 100644
--- a/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp
+++ b/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp
@@ -40,14 +40,9 @@
: GrDrawOp::FixedFunctionFlags::kNone;
}
-static bool none_as_coverage_aa_compatible(GrAAType aa1, GrAAType aa2) {
- return (aa1 == GrAAType::kNone && aa2 == GrAAType::kCoverage) ||
- (aa1 == GrAAType::kCoverage && aa2 == GrAAType::kNone);
-}
-
bool GrSimpleMeshDrawOpHelper::isCompatible(const GrSimpleMeshDrawOpHelper& that,
const GrCaps& caps, const SkRect& thisBounds,
- const SkRect& thatBounds, bool noneAsCoverageAA) const {
+ const SkRect& thatBounds) const {
if (SkToBool(fProcessors) != SkToBool(that.fProcessors)) {
return false;
}
@@ -62,8 +57,7 @@
}
}
}
- bool result = fPipelineFlags == that.fPipelineFlags && (fAAType == that.fAAType ||
- (noneAsCoverageAA && none_as_coverage_aa_compatible(this->aaType(), that.aaType())));
+ bool result = fPipelineFlags == that.fPipelineFlags && fAAType == that.fAAType;
SkASSERT(!result || fCompatibleWithAlphaAsCoveage == that.fCompatibleWithAlphaAsCoveage);
SkASSERT(!result || fUsesLocalCoords == that.fUsesLocalCoords);
return result;
@@ -184,8 +178,8 @@
bool GrSimpleMeshDrawOpHelperWithStencil::isCompatible(
const GrSimpleMeshDrawOpHelperWithStencil& that, const GrCaps& caps,
- const SkRect& thisBounds, const SkRect& thatBounds, bool noneAsCoverageAA) const {
- return INHERITED::isCompatible(that, caps, thisBounds, thatBounds, noneAsCoverageAA) &&
+ const SkRect& thisBounds, const SkRect& thatBounds) const {
+ return INHERITED::isCompatible(that, caps, thisBounds, thatBounds) &&
fStencilSettings == that.fStencilSettings;
}