Lines Matching refs:rect

42     REPORTER_ASSERT(reporter, bounds == rrect.rect());
790 static void add_corner_arc(SkPath* path, const SkRect& rect,
795 SkScalar rx = std::min(rect.width(), xIn);
796 SkScalar ry = std::min(rect.height(), yIn);
802 arcRect.offset(rect.fRight - arcRect.fRight, rect.fBottom - arcRect.fBottom);
805 arcRect.offset(rect.fLeft - arcRect.fLeft, rect.fBottom - arcRect.fBottom);
808 arcRect.offset(rect.fLeft - arcRect.fLeft, rect.fTop - arcRect.fTop);
811 arcRect.offset(rect.fRight - arcRect.fRight, rect.fTop - arcRect.fTop);
857 // Chrome will sometimes create a 0 radius round rect. The degenerate
858 // quads prevent the path from being converted to a rect
1093 // rect with top two corners replaced by cubics with identical middle
1109 // rect with top two corners replaced by cubics with identical middle
1259 SkPath rect;
1260 rect.addRect(SK_Scalar1, SK_Scalar1, 10 * SK_Scalar1, 10*SK_Scalar1);
1261 check_close(reporter, rect);
1262 rect.close();
1263 check_close(reporter, rect);
1790 // kBaseRect is used to construct most our test paths: a rect, a circle, and a round-rect.
1798 // round-rect radii
1810 // rect well inside of kBaseRect
1846 // far away rect
1851 // very large rect containing kBaseRect
1857 // skinny rect that spans same y-range as kBaseRect
1862 // short rect that spans same x-range as kBaseRect
1866 // skinny rect that spans slightly larger y-range than kBaseRect
1871 // short rect that spans slightly larger x-range than kBaseRect
2063 // no close, but we should detect them as fillably the same as a rect
2215 const SkRect& rect, SkPathDirection dir, unsigned start) {
2222 REPORTER_ASSERT(reporter, r == rect);
2296 // An inverted rect makes a rect path, but changes the winding dir and start point.
2320 SkRect rect;
2324 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2325 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2333 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2334 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2342 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2343 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2351 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2352 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2570 // pass, stroke rect
2664 SkRect rect = SkRect::MakeWH(10, 10);
2665 oval.addOval(rect);
3295 SkRect rect = SkRect::MakeEmpty();
3296 REPORTER_ASSERT(reporter, path.isOval(&rect) == expectedCircle);
3299 if (SkPathPriv::IsOval(path, &rect, &isOvalDir, &isOvalStart)) {
3300 REPORTER_ASSERT(reporter, rect.height() == rect.width());
3303 tmpPath.addOval(rect, isOvalDir, isOvalStart);
3461 SkPath rect;
3468 rect.addRect(SkIntToScalar(5), SkIntToScalar(5),
3490 path.reverseAddPath(rect);
3525 SkRect rect;
3531 rect = SkRect::MakeWH(SkIntToScalar(30), SkIntToScalar(50));
3532 path.addOval(rect);
3574 path.addOval(rect);
3580 tmp.addOval(rect);
3672 // The round rect is "empty" in that it has no fill area. However,
4902 // now force p to not be a rect
5242 SkRect rect;
5245 REPORTER_ASSERT(reporter, path.isRect(&rect));
5248 REPORTER_ASSERT(reporter, rect == compare);
5252 REPORTER_ASSERT(reporter, !path.isRect(&rect));
5256 REPORTER_ASSERT(reporter, path.isRect(&rect));
5258 REPORTER_ASSERT(reporter, rect == compare);
5264 REPORTER_ASSERT(reporter, path.isRect(&rect));
5266 REPORTER_ASSERT(reporter, rect == compare);
5275 REPORTER_ASSERT(reporter, !path.isRect(&rect));
5281 REPORTER_ASSERT(reporter, path.isRect(&rect));
5283 REPORTER_ASSERT(reporter, rect == compare);
5287 REPORTER_ASSERT(reporter, !path.isRect(&rect));
5296 REPORTER_ASSERT(reporter, !path.isRect(&rect));
5304 REPORTER_ASSERT(reporter, path.isRect(&rect));
5306 REPORTER_ASSERT(reporter, rect == compare);
5313 REPORTER_ASSERT(reporter, !path.isRect(&rect));
5320 REPORTER_ASSERT(reporter, path.isRect(&rect));
5322 REPORTER_ASSERT(reporter, rect == compare);
5328 REPORTER_ASSERT(reporter, !path.isRect(&rect));
5334 REPORTER_ASSERT(reporter, !path.isRect(&rect));
5342 REPORTER_ASSERT(reporter, path.isRect(&rect));
5344 REPORTER_ASSERT(reporter, rect == compare);
5351 REPORTER_ASSERT(reporter, path.isRect(&rect));
5353 REPORTER_ASSERT(reporter, rect == compare);
5360 REPORTER_ASSERT(reporter, path.isRect(&rect));
5362 REPORTER_ASSERT(reporter, rect == compare);
5526 * Axis-aligned shapes (rect, oval, rrect) should survive, including convexity if the matrix
5720 // check that the new line begins where the rect began
5729 // now add a moveTo before the rect, just to be sure we don't always look at
5738 p[2], p[3], p[0], p[1], // rect
5784 // add a rect, but the shape doesn't really matter
5840 // Test both an empty and non-empty rect passed to SkPath::addRect
5844 for (SkRect rect: rects) {
5852 path.addRect(rect);
5865 SkRect query = rect.makeInset(10.f, 0.f);