Check hairline after resolving edge flags
Change-Id: Ib0682649d298317b3bcd8c50ca473bb6351fd55b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/427616 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: Michael Ludwig <michaelludwig@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
parent
a63205db7e
commit
8115997316
@ -571,14 +571,13 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
// Update overall bounds of the op as the union of all quads
|
||||
bounds.joinPossiblyEmptyRect(quad.fDevice.bounds());
|
||||
hasSubpixel |= GrQuadUtils::WillUseHairline(quad.fDevice, aaType, quad.fEdgeFlags);
|
||||
|
||||
// Determine the AA type for the quad, then merge with net AA type
|
||||
GrAAType aaForQuad;
|
||||
GrQuadUtils::ResolveAAType(aaType, set[q].fAAFlags, quad.fDevice,
|
||||
&aaForQuad, &quad.fEdgeFlags);
|
||||
// Update overall bounds of the op as the union of all quads
|
||||
bounds.joinPossiblyEmptyRect(quad.fDevice.bounds());
|
||||
hasSubpixel |= GrQuadUtils::WillUseHairline(quad.fDevice, aaForQuad, quad.fEdgeFlags);
|
||||
|
||||
// Resolve sets aaForQuad to aaType or None, there is never a change between aa methods
|
||||
SkASSERT(aaForQuad == GrAAType::kNone || aaForQuad == aaType);
|
||||
|
Loading…
Reference in New Issue
Block a user