Lines Matching refs:rect
41 PreClipResult(SkRect rect, GrAA aa) : PreClipResult(SkRRect::MakeRect(rect), aa) {}
77 * with one exception. When 'result.fIsRRect' is true, preApply() reports the single round rect
79 * action is taken to modify the draw, apply() will represent this round rect in the applied
114 * @param innerClipBounds device-space rect fully contained by the clip
124 * @param outerClipBounds device-space rect that contains the clip
189 * Returns true if the given rect counts as aligned with pixel boundaries.
191 static bool IsPixelAligned(const SkRect& rect) {
192 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect.fLeft) <= kBoundsTolerance &&
193 SkScalarAbs(SkScalarRoundToScalar(rect.fTop) - rect.fTop) <= kBoundsTolerance &&
194 SkScalarAbs(SkScalarRoundToScalar(rect.fRight) - rect.fRight) <= kBoundsTolerance &&
195 SkScalarAbs(SkScalarRoundToScalar(rect.fBottom) - rect.fBottom) <= kBoundsTolerance;