Lines Matching refs:transformedRect
40 static bool has_aligned_samples(const SkRect& srcRect, const SkRect& transformedRect) { in has_aligned_samples() argument
42 …if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) - transformedRect.left()) < kColorBl… in has_aligned_samples()
43 …SkScalarAbs(SkScalarRoundToScalar(transformedRect.top()) - transformedRect.top()) < kColorBleedT… in has_aligned_samples()
44 SkScalarAbs(transformedRect.width() - srcRect.width()) < kColorBleedTolerance && in has_aligned_samples()
45 SkScalarAbs(transformedRect.height() - srcRect.height()) < kColorBleedTolerance) { in has_aligned_samples()
52 const SkRect& transformedRect, in may_color_bleed() argument
57 SkASSERT(!has_aligned_samples(srcRect, transformedRect)); in may_color_bleed()
58 SkRect innerSrcRect(srcRect), innerTransformedRect, outerTransformedRect(transformedRect); in may_color_bleed()
86 SkRect transformedRect; in can_ignore_bilerp_constraint() local
87 srcRectToDeviceSpace.mapRect(&transformedRect, srcRect); in can_ignore_bilerp_constraint()
89 if (has_aligned_samples(srcRect, transformedRect) || in can_ignore_bilerp_constraint()
90 !may_color_bleed(srcRect, transformedRect, srcRectToDeviceSpace, fsaaType)) { in can_ignore_bilerp_constraint()