Home
last modified time | relevance | path

Searched refs:addRect (Results 1 – 25 of 116) sorted by relevance

12345

/third_party/skia/tests/
DPathOpsBuilderTest.cpp29 rectPath.addRect(0, 1, 2, 3, SkPathDirection::kCW); in DEF_TEST()
42 rectPath.addRect(0, 1, 2, 3, SkPathDirection::kCCW); in DEF_TEST()
55 rect2.addRect(2, 1, 4, 3, SkPathDirection::kCW); in DEF_TEST()
56 rect3.addRect(4, 1, 5, 3, SkPathDirection::kCCW); in DEF_TEST()
142 path.addRect(0, 0, 1, 1, SkPathDirection::kCW); in DEF_TEST()
143 path.addRect(2, 2, 3, 3, SkPathDirection::kCW); in DEF_TEST()
145 pathB.addRect(3, 3, 4, 4, SkPathDirection::kCW); in DEF_TEST()
146 pathB.addRect(3, 3, 4, 4, SkPathDirection::kCW); in DEF_TEST()
215 inner.addRect(10, 30, 10+0, 30+60); // <rect x="10" y="30" width="0" height="60" /> in DEF_TEST()
216 inner.addRect(10, 30, 10+0, 30+60); // <rect x="10" y="30" width="0" height="60" /> in DEF_TEST()
[all …]
DPathOpsSimplifyTest.cpp444 path.addRect(0, 0, 9, 9, SkPathDirection::kCW); in testLine15()
451 path.addRect(0, 0, 9, 9, SkPathDirection::kCW); in testLine15x()
457 path.addRect(0, 0, 12, 12, SkPathDirection::kCW); in testLine16()
458 path.addRect(0, 4, 9, 9, SkPathDirection::kCW); in testLine16()
465 path.addRect(0, 0, 12, 12, SkPathDirection::kCW); in testLine16x()
466 path.addRect(0, 4, 9, 9, SkPathDirection::kCW); in testLine16x()
472 path.addRect(0, 0, 12, 12, SkPathDirection::kCW); in testLine17()
473 path.addRect(4, 12, 13, 13, SkPathDirection::kCW); in testLine17()
480 path.addRect(0, 0, 12, 12, SkPathDirection::kCW); in testLine17x()
481 path.addRect(4, 12, 13, 13, SkPathDirection::kCW); in testLine17x()
[all …]
DPathOpsAsWindingTest.cpp17 path.addRect(rect, dir); in build_squircle()
55 test.addRect({1, 2, 3, 4}); in DEF_TEST()
73 test.addRect({1, 2, 3, SK_ScalarInfinity}); in DEF_TEST()
86 test.addRect({5, 2, 6, 3}); in DEF_TEST()
95 test.addRect({2, 2, 3, 3}); in DEF_TEST()
103 test.addRect({0, 0, 3, 3}); in DEF_TEST()
104 test.addRect({1, 1, 4, 4}); in DEF_TEST()
127 test.addRect(rectA, dirA); in DEF_TEST()
128 test.addRect(rectB, dirB); in DEF_TEST()
130 test.addRect(rectB, dirB); in DEF_TEST()
[all …]
DPathOpsOpRectThreadedTest.cpp37 pathA.addRect(SkIntToScalar(state.fA), SkIntToScalar(state.fA), SkIntToScalar(state.fB), in testPathOpsRectsMain()
39 pathA.addRect(SkIntToScalar(state.fC), SkIntToScalar(state.fC), SkIntToScalar(state.fD), in testPathOpsRectsMain()
43 pathB.addRect(SkIntToScalar(a), SkIntToScalar(a), SkIntToScalar(b), in testPathOpsRectsMain()
45 pathB.addRect(SkIntToScalar(c), SkIntToScalar(c), SkIntToScalar(d), in testPathOpsRectsMain()
131 pathA.addRect(SkIntToScalar(state.fA), SkIntToScalar(state.fA), SkIntToScalar(state.fB) + c, in testPathOpsFastMain()
137 pathB.addRect(SkIntToScalar(state.fC), SkIntToScalar(state.fC), SkIntToScalar(state.fD) + d, in testPathOpsFastMain()
DPathOpsSimplifyRectThreadedTest.cpp65 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
97 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
129 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
161 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
DPathOpsInverseTest.cpp22 one.addRect(0, 0, 6, 6, oneDir); in DEF_TEST()
27 two.addRect(3, 3, 9, 9, twoDir); in DEF_TEST()
DGpuRectanizerTest.cpp25 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc)); in test_rectanizer_basic()
37 if (!rectanizer->addRect(rects[i].fWidth, rects[i].fHeight, &loc)) { in test_rectanizer_inserts()
DClipStackTest.cpp94 rp.addRect(r); in test_assign_and_comparison()
126 p.addRect(r); in test_assign_and_comparison()
376 path.addRect(rect); in test_rect_inverse_fill()
701 path.addRect(outsideRect); in test_quickContains()
710 path.addRect(insideRect); in test_quickContains()
719 path.addRect(intersectingRect); in test_quickContains()
728 path.addRect(nonIntersectingRect); in test_quickContains()
796 path.addRect({30, 10, 40, 20}); in test_invfill_diff_bug()
/third_party/skia/docs/examples/
DPath_FillType_a.cpp8 path.addRect({10, 10, 30, 30}, SkPathDirection::kCW); in draw()
9 path.addRect({20, 20, 40, 40}, SkPathDirection::kCW); in draw()
10 path.addRect({10, 60, 30, 80}, SkPathDirection::kCW); in draw()
11 path.addRect({20, 70, 40, 90}, SkPathDirection::kCCW); in draw()
DPath_addRect.cpp14 path.addRect({20, 20, 100, 100}, SkPathDirection::kCW); in draw()
17 path.addRect({140, 20, 220, 100}, SkPathDirection::kCCW); in draw()
DCanvas_clipPath_2.cpp10 path.addRect({20, 15, 100, 95}); in draw()
11 path.addRect({50, 65, 130, 135}); in draw()
DPath_FillType_b.cpp9 path.addRect({20, 10, 80, 70}, SkPathDirection::kCW);
10 path.addRect({40, 30, 100, 90}, SkPathDirection::kCW);
/third_party/skia/modules/canvaskit/tests/
Dpath.spec.js87 pathOne.addRect([10, 10, 20, 20]);
90 pathTwo.addRect([15, 15, 30, 30]);
239 path.addRect([10, 15, 20, 25]);
474 .addRect(CanvasKit.LTRBRect(200, 200, 300, 300)) // test single arg, default cw
475 .addRect(CanvasKit.LTRBRect(240, 240, 260, 260), true) // test two arg, true means ccw
476 .addRect([260, 260, 290, 290], true) // test five arg, true means ccw
496 path.addRect(CanvasKit.LTRBRect(10, 10, 30, 30), false);
497 path.addRect(CanvasKit.LTRBRect(20, 20, 40, 40), false);
499 path.addRect(CanvasKit.LTRBRect(10, 60, 30, 80), false);
500 path.addRect(CanvasKit.LTRBRect(20, 70, 40, 90), true);
[all …]
/third_party/skia/gm/
Daaa.cpp125 canvas->drawPath(SkPathBuilder().addRect({20, 20, 100.4999f, 100}) in DEF_SIMPLE_GM()
126 .addRect({100.5001f, 20, 200, 100}) in DEF_SIMPLE_GM()
130 canvas->drawPath(SkPathBuilder().addRect({20, 20, 100.1f, 100}) in DEF_SIMPLE_GM()
131 .addRect({100.9f, 20, 200, 100}) in DEF_SIMPLE_GM()
Dblurs.cpp91 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
92 .addRect(inner, SkPathDirection::kCCW)
109 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
110 .addRect(inner, SkPathDirection::kCW)
Dnested.cpp59 b->addRect(rect, dir); in AddShape()
158 square.addRect(SkRect::MakeLTRB(0.f, 9.f, 5.f, 14.f)); in __anonce2620dd0102()
159 square.addRect(SkRect::MakeLTRB(1.f, 10.f, 4.f, 13.f), SkPathDirection::kCCW); in __anonce2620dd0102()
Dstrokefill.cpp318 path3.addRect(r, SkPathDirection::kCW);
320 path3.addRect(r, SkPathDirection::kCCW);
327 path4.addRect(r, SkPathDirection::kCCW);
329 path4.addRect(r, SkPathDirection::kCW);
336 path4.addRect(r, SkPathDirection::kCCW);
345 path4.addRect(r, SkPathDirection::kCW);
Dstrokes.cpp115 fRefPath[2].addRect(i * 10.f - 4, -2, i * 10.f + 4, 6); in onOnceBeforeDraw()
116 fRefPath[3].addRect(i * 10.f - 10, -10, i * 10.f + 10, 10); in onOnceBeforeDraw()
347 path->addRect(bounds, SkPathDirection::kCW); in make0()
348 path->addRect(inset(bounds), SkPathDirection::kCW); in make0()
353 path->addRect(bounds, SkPathDirection::kCW); in make1()
354 path->addRect(inset(bounds), SkPathDirection::kCCW); in make1()
371 path->addRect(bounds, SkPathDirection::kCW); in make4()
379 path->addRect(bounds, SkPathDirection::kCW); in make5()
Dlargeclippedpath.cpp23 clip.addRect(0, y * kCellSize, kSize, (y + 1) * kCellSize, SkPathDirection(y & 1)); in draw_clipped_flower()
26 clip.addRect(x * kCellSize, 0, (x + 1) * kCellSize, kSize, SkPathDirection(x & 1)); in draw_clipped_flower()
Dpathreverse.cpp80 path.addRect(r); test_rev(canvas, path);
84 path.addRect(r); test_rev(canvas, path);
Dbigblurs.cpp52 SkPath rectori = SkPathBuilder().addRect(bigRect) in onDraw()
53 .addRect(insetRect, SkPathDirection::kCCW) in onDraw()
Dpathinterior.cpp86 path.addRect(r, outerDir); in onDraw()
92 path.addRect(r, innerDir); in onDraw()
/third_party/skia/src/gpu/
DGrDynamicAtlas.cpp31 bool addRect(int w, int h, SkIPoint16* loc) { in addRect() function in GrDynamicAtlas::Node
39 if (!fRectanizer->addRect(w, h, loc)) { in addRect()
131 bool GrDynamicAtlas::addRect(int width, int height, SkIPoint16* location) { in addRect() function in GrDynamicAtlas
164 if (node->addRect(w, h, loc)) { in internalPlaceRect()
183 } while (!fTopNode->addRect(w, h, loc)); in internalPlaceRect()
/third_party/skia/src/core/
DSkPictureRecord.cpp104 this->addRect(*subset); in onDoSaveBehind()
140 this->addRect(*rec.fBounds); in recordSaveLayer()
326 this->addRect(rect); in recordClipRect()
463 this->addRect(oval); in onDrawOval()
474 this->addRect(oval); in onDrawArc()
486 this->addRect(rect); in onDrawRect()
551 this->addRect(src); in onDrawImageRect2()
552 this->addRect(dst); in onDrawImageRect2()
568 this->addRect(dst); in onDrawImageLattice2()
738 this->addRect(rect); in onDrawAnnotation()
[all …]
/third_party/skia/bench/
DBlurRectsBench.cpp37 path.addRect(fOuter, SkPathDirection::kCW); in onDraw()
38 path.addRect(fInner, SkPathDirection::kCW); in onDraw()

12345