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:
parent
8172c0a24a
commit
45839f9cd1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user