Home
last modified time | relevance | path

Searched refs:addRect (Results 1 - 25 of 111) sorted by relevance

12345

/third_party/skia/tests/
H A 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(1 in DEF_TEST()
[all...]
H A 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(rect in DEF_TEST()
[all...]
H A 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( in testLine17x()
[all...]
H A 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()
57 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
59 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
64 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
66 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
131 pathA.addRect(SkIntToScalar(state.fA), SkIntToScalar(state.fA), SkIntToScalar(state.fB) + c, in testPathOpsFastMain()
137 pathB.addRect(SkIntToScala in testPathOpsFastMain()
[all...]
H A DPathOpsSimplifyRectThreadedTest.cpp65 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
68 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
97 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
100 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
129 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
132 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
161 path.addRect(SkIntToScalar(l), SkIntToScalar(t), SkIntToScalar(r), SkIntToScalar(b), in testSimplify4x4RectsMain()
164 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
H A DPathOpsInverseTest.cpp22 one.addRect(0, 0, 6, 6, oneDir); in DEF_TEST()
27 two.addRect(3, 3, 9, 9, twoDir); in DEF_TEST()
H A 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()
H A DDefaultPathRendererTest.cpp58 p.addRect(outer, SkPathDirection::kCW); in make_path()
59 p.addRect(outer.makeInset(inset, inset), SkPathDirection::kCCW); in make_path()
/third_party/skia/docs/examples/
H A DPath_FillType_a.cpp8 path.addRect({10, 10, 30, 30}, SkPathDirection::kCW); in REG_FIDDLE()
9 path.addRect({20, 20, 40, 40}, SkPathDirection::kCW); in REG_FIDDLE()
10 path.addRect({10, 60, 30, 80}, SkPathDirection::kCW); in REG_FIDDLE()
11 path.addRect({20, 70, 40, 90}, SkPathDirection::kCCW); in REG_FIDDLE()
H A DPath_addRect.cpp14 path.addRect({20, 20, 100, 100}, SkPathDirection::kCW); in REG_FIDDLE()
17 path.addRect({140, 20, 220, 100}, SkPathDirection::kCCW); in REG_FIDDLE()
H A DCanvas_clipPath_2.cpp10 path.addRect({20, 15, 100, 95}); in REG_FIDDLE()
11 path.addRect({50, 65, 130, 135}); in REG_FIDDLE()
H A DPath_FillType_b.cpp9 path.addRect({20, 10, 80, 70}, SkPathDirection::kCW); in REG_FIDDLE()
10 path.addRect({40, 30, 100, 90}, SkPathDirection::kCW); in REG_FIDDLE()
/third_party/skia/src/gpu/
H A 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/gm/
H A Dblurs.cpp91 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW) in DEF_SIMPLE_GM()
92 .addRect(inner, SkPathDirection::kCCW) in DEF_SIMPLE_GM()
109 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW) in DEF_SIMPLE_GM()
110 .addRect(inner, SkPathDirection::kCW) in DEF_SIMPLE_GM()
H A 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()
H A Dnested.cpp59 b->addRect(rect, dir); in AddShape()
158 square.addRect(SkRect::MakeLTRB(0.f, 9.f, 5.f, 14.f)); in DEF_SIMPLE_GM()
159 square.addRect(SkRect::MakeLTRB(1.f, 10.f, 4.f, 13.f), SkPathDirection::kCCW); in DEF_SIMPLE_GM()
H A 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()
H A Dstrokes.cpp115 fRefPath[2].addRect(i * 10.f - 4, -2, i * 10.f + 4, 6);
116 fRefPath[3].addRect(i * 10.f - 10, -10, i * 10.f + 10, 10);
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()
H A Dpathinterior.cpp86 path.addRect(r, outerDir);
92 path.addRect(r, innerDir);
H A Dbigblurs.cpp52 SkPath rectori = SkPathBuilder().addRect(bigRect)
53 .addRect(insetRect, SkPathDirection::kCCW)
H A Dpathreverse.cpp80 path.addRect(r); test_rev(canvas, path); in DEF_SIMPLE_GM_BG_NAME()
84 path.addRect(r); test_rev(canvas, path); in DEF_SIMPLE_GM_BG_NAME()
H A Dpathopsinverse.cpp79 one.addRect(10, 10, 70, 70);
82 two.addRect(40, 40, 100, 100);
/third_party/skia/src/core/
H A 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(rec in onDrawAnnotation()
890 void SkPictureRecord::addRect(const SkRect& rect) { addRect() function in SkPictureRecord
[all...]
/third_party/skia/bench/
H A DBlurRectsBench.cpp37 path.addRect(fOuter, SkPathDirection::kCW);
38 path.addRect(fInner, SkPathDirection::kCW);
/third_party/skia/include/core/
H A DSkPathBuilder.h181 SkPathBuilder& addRect(const SkRect&, SkPathDirection, unsigned startIndex);
185 SkPathBuilder& addRect(const SkRect& rect, SkPathDirection dir = SkPathDirection::kCW) { in addRect() function in SkPathBuilder
186 return this->addRect(rect, dir, 0); in addRect()

Completed in 15 milliseconds

12345