Lines Matching refs:aa
41 PreClipResult(SkRect rect, GrAA aa) : PreClipResult(SkRRect::MakeRect(rect), aa) {} in PreClipResult()
42 PreClipResult(SkRRect rrect, GrAA aa) in PreClipResult()
45 , fAA(aa) in PreClipResult()
86 virtual PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const { in preApply() argument
87 SkIRect pixelBounds = GetPixelIBounds(drawBounds, aa); in preApply()
117 static bool IsInsideClip(const SkIRect& innerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsInsideClip() argument
118 return innerClipBounds.contains(GetPixelIBounds(drawBounds, aa)); in IsInsideClip()
128 static bool IsOutsideClip(const SkIRect& outerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsOutsideClip() argument
129 return !SkIRect::Intersects(outerClipBounds, GetPixelIBounds(drawBounds, aa)); in IsOutsideClip()
162 static SkIRect GetPixelIBounds(const SkRect& bounds, GrAA aa,
164 auto roundLow = [aa](float v) {
166 return aa == GrAA::kNo ? SkScalarRoundToInt(v - kHalfPixelRoundingTolerance)
169 auto roundHigh = [aa](float v) {
171 return aa == GrAA::kNo ? SkScalarRoundToInt(v + kHalfPixelRoundingTolerance)
217 GrAAType aa, in apply() argument
220 SkIRect pixelBounds = GetPixelIBounds(*bounds, GrAA(aa != GrAAType::kNone)); in apply()