Lines Matching refs:srcRect
31 static bool has_aligned_samples(const SkRect& srcRect, const SkRect& transformedRect) { in has_aligned_samples() argument
35 SkScalarAbs(transformedRect.width() - srcRect.width()) < kColorBleedTolerance && in has_aligned_samples()
36 SkScalarAbs(transformedRect.height() - srcRect.height()) < kColorBleedTolerance) { in has_aligned_samples()
42 static bool may_color_bleed(const SkRect& srcRect, in may_color_bleed() argument
48 SkASSERT(!has_aligned_samples(srcRect, transformedRect)); in may_color_bleed()
49 SkRect innerSrcRect(srcRect), innerTransformedRect, outerTransformedRect(transformedRect); in may_color_bleed()
72 const SkRect& srcRect, in can_ignore_bilerp_constraint() argument
78 srcRectToDeviceSpace.mapRect(&transformedRect, srcRect); in can_ignore_bilerp_constraint()
80 if (has_aligned_samples(srcRect, transformedRect) || in can_ignore_bilerp_constraint()
81 !may_color_bleed(srcRect, transformedRect, srcRectToDeviceSpace, isMSAA)) { in can_ignore_bilerp_constraint()
91 const SkRect* srcRect, in drawTextureProducer() argument
107 if (srcRect) { in drawTextureProducer()
111 if (!srcBounds.contains(*srcRect)) { in drawTextureProducer()
112 clippedSrcRect = *srcRect; in drawTextureProducer()
116 if (!srcToDstMatrix.setRectToRect(*srcRect, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()
121 clippedSrcRect = *srcRect; in drawTextureProducer()
123 if (!srcToDstMatrix.setRectToRect(*srcRect, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()