Home
last modified time | relevance | path

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

1234567891011

/third_party/flutter/skia/tests/
DPathOpsBuilderTest.cpp29 rectPath.addRect(0, 1, 2, 3, SkPath::kCW_Direction); in DEF_TEST()
42 rectPath.addRect(0, 1, 2, 3, SkPath::kCCW_Direction); in DEF_TEST()
55 rect2.addRect(2, 1, 4, 3, SkPath::kCW_Direction); in DEF_TEST()
56 rect3.addRect(4, 1, 5, 3, SkPath::kCCW_Direction); in DEF_TEST()
142 path.addRect(0, 0, 1, 1, SkPath::kCW_Direction); in DEF_TEST()
143 path.addRect(2, 2, 3, 3, SkPath::kCW_Direction); in DEF_TEST()
145 pathB.addRect(3, 3, 4, 4, SkPath::kCW_Direction); in DEF_TEST()
146 pathB.addRect(3, 3, 4, 4, SkPath::kCW_Direction); 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, SkPath::kCW_Direction); in testLine15()
451 path.addRect(0, 0, 9, 9, SkPath::kCW_Direction); in testLine15x()
457 path.addRect(0, 0, 12, 12, SkPath::kCW_Direction); in testLine16()
458 path.addRect(0, 4, 9, 9, SkPath::kCW_Direction); in testLine16()
465 path.addRect(0, 0, 12, 12, SkPath::kCW_Direction); in testLine16x()
466 path.addRect(0, 4, 9, 9, SkPath::kCW_Direction); in testLine16x()
472 path.addRect(0, 0, 12, 12, SkPath::kCW_Direction); in testLine17()
473 path.addRect(4, 12, 13, 13, SkPath::kCW_Direction); in testLine17()
480 path.addRect(0, 0, 12, 12, SkPath::kCW_Direction); in testLine17x()
481 path.addRect(4, 12, 13, 13, SkPath::kCW_Direction); 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.cpp36 pathA.addRect(SkIntToScalar(state.fA), SkIntToScalar(state.fA), SkIntToScalar(state.fB), in testPathOpsRectsMain()
38 pathA.addRect(SkIntToScalar(state.fC), SkIntToScalar(state.fC), SkIntToScalar(state.fD), in testPathOpsRectsMain()
42 pathB.addRect(SkIntToScalar(a), SkIntToScalar(a), SkIntToScalar(b), in testPathOpsRectsMain()
44 pathB.addRect(SkIntToScalar(c), SkIntToScalar(c), SkIntToScalar(d), in testPathOpsRectsMain()
126 pathA.addRect(SkIntToScalar(state.fA), SkIntToScalar(state.fA), SkIntToScalar(state.fB) + c, in testPathOpsFastMain()
132 pathB.addRect(SkIntToScalar(state.fC), SkIntToScalar(state.fC), SkIntToScalar(state.fD) + d, in testPathOpsFastMain()
DPathOpsSimplifyRectThreadedTest.cpp66 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()
128 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
159 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
/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()
/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()
DCanvas_clipPath_2.cpp10 path.addRect({20, 15, 100, 95}); in draw()
11 path.addRect({50, 65, 130, 135}); 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()
/third_party/flutter/skia/docs/examples/
DPath_FillType_a.cpp8 path.addRect({10, 10, 30, 30}, SkPath::kCW_Direction); in draw()
9 path.addRect({20, 20, 40, 40}, SkPath::kCW_Direction); in draw()
10 path.addRect({10, 60, 30, 80}, SkPath::kCW_Direction); in draw()
11 path.addRect({20, 70, 40, 90}, SkPath::kCCW_Direction); in draw()
DPath_notequal_operator.cpp13 one.addRect({10, 20, 30, 40}); in draw()
14 two.addRect({10, 20, 30, 40}); in draw()
DCanvas_clipPath_2.cpp10 path.addRect({20, 15, 100, 95}); in draw()
11 path.addRect({50, 65, 130, 135}); in draw()
DPath_addRect.cpp14 path.addRect({20, 20, 100, 100}, SkPath::kCW_Direction); in draw()
17 path.addRect({140, 20, 220, 100}, SkPath::kCCW_Direction); in draw()
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCAtlas.cpp31 bool addRect(int w, int h, SkIPoint16* loc, int maxAtlasSize) { in addRect() function in GrCCAtlas::Node
39 if (!fRectanizer.addRect(w, h, loc)) { in addRect()
136 bool GrCCAtlas::addRect(const SkIRect& devIBounds, SkIVector* offset) { in addRect() function in GrCCAtlas
153 if (node->addRect(w, h, loc, fMaxTextureSize)) { in internalPlaceRect()
172 } while (!fTopNode->addRect(w, h, loc, fMaxTextureSize)); in internalPlaceRect()
258 GrCCAtlas* GrCCAtlasStack::addRect(const SkIRect& devIBounds, SkIVector* devToAtlasOffset) { in addRect() function in GrCCAtlasStack
260 if (fAtlases.empty() || !fAtlases.back().addRect(devIBounds, devToAtlasOffset)) { in addRect()
266 SkAssertResult(fAtlases.back().addRect(devIBounds, devToAtlasOffset)); in addRect()
/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/flutter/skia/gm/
Dblurs.cpp91 path.addRect(outer, SkPath::kCW_Direction);
92 path.addRect(inner, SkPath::kCCW_Direction);
109 path.addRect(outer, SkPath::kCW_Direction);
110 path.addRect(inner, SkPath::kCW_Direction);
Daaa.cpp126 path.addRect({20, 20, 100.4999f, 100}); in DEF_SIMPLE_GM()
127 path.addRect({100.5001f, 20, 200, 100}); in DEF_SIMPLE_GM()
132 path.addRect({20, 20, 100.1f, 100}); in DEF_SIMPLE_GM()
133 path.addRect({100.9f, 20, 200, 100}); in DEF_SIMPLE_GM()
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dlayers_test.dart287 newPath.addRect(unitRect);
341 newPath.addRect(unitRect);
392 clipPath: Path()..addRect(const Rect.fromLTWH(0, 0, 20, 20)),
398 clipPath: Path()..addRect(const Rect.fromLTWH(10, 10, 20, 20)),
416 clipPath: Path()..addRect(const Rect.fromLTWH(0, 0, 20, 20)),
422 clipPath: Path()..addRect(const Rect.fromLTWH(10, 10, 20, 20)),
438 clipPath: Path()..addRect(const Rect.fromLTWH(0, 0, 20, 20)),
444 clipPath: Path()..addRect(const Rect.fromLTWH(20, 20, 20, 20)),
462 clipPath: Path()..addRect(const Rect.fromLTWH(0, 0, 20, 20)),
469 clipPath: Path()..addRect(const Rect.fromLTWH(2, 2, 10, 10)),
[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)
/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()

1234567891011