Avoid coverage aa for filled drrects when using msaa.

Change-Id: If0ba4a2a3baa4cfae2aebb05bd61786918486874
Reviewed-on: https://skia-review.googlesource.com/79620
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2017-12-04 09:02:35 -05:00 committed by Skia Commit-Bot
parent 8172c0a24a
commit 45839f9cd1

View File

@ -1226,7 +1226,13 @@ bool GrRenderTargetContext::drawFilledDRRect(const GrClip& clip,
SkTCopyOnFirstWrite<SkRRect> inner(origInner), outer(origOuter);
if (aa == GrAA::kYes && inner->isCircle() && outer->isCircle()) {
GrAAType aaType = this->chooseAAType(aa, GrAllowMixedSamples::kNo);
if (GrAAType::kMSAA == aaType) {
return false;
}
if (GrAAType::kCoverage == aaType && inner->isCircle() && outer->isCircle()) {
auto outerR = outer->width() / 2.f;
auto innerR = inner->width() / 2.f;
auto cx = outer->getBounds().fLeft + outerR;
@ -1246,8 +1252,6 @@ bool GrRenderTargetContext::drawFilledDRRect(const GrClip& clip,
}
}
GrAAType aaType = this->chooseAAType(aa, GrAllowMixedSamples::kNo);
GrClipEdgeType innerEdgeType, outerEdgeType;
if (GrAAType::kCoverage == aaType) {
innerEdgeType = GrClipEdgeType::kInverseFillAA;