Home
last modified time | relevance | path

Searched refs:kCW_Direction (Results 1 – 25 of 34) sorted by relevance

12

/external/skia/tests/
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 …]
DPathOpsBuilderTest.cpp29 rectPath.addRect(0, 1, 2, 3, SkPath::kCW_Direction); in DEF_TEST()
36 REPORTER_ASSERT(reporter, dir == SkPath::kCW_Direction); in DEF_TEST()
54 rect2.addRect(2, 1, 4, 3, SkPath::kCW_Direction); in DEF_TEST()
67 circle1.addCircle(5, 6, 4, SkPath::kCW_Direction); in DEF_TEST()
69 circle3.addCircle(6, 5, 6, SkPath::kCW_Direction); in DEF_TEST()
DPathOpsOpRectThreadedTest.cpp60 SkIntToScalar(state.fB), SkPath::kCW_Direction); in testPathOpsRectsMain()
62 SkIntToScalar(state.fD), SkPath::kCW_Direction); in testPathOpsRectsMain()
66 SkIntToScalar(b), SkPath::kCW_Direction); in testPathOpsRectsMain()
68 SkIntToScalar(d), SkPath::kCW_Direction); in testPathOpsRectsMain()
DPathTest.cpp831 REPORTER_ASSERT(reporter, !path.cheapIsDirection(SkPath::kCW_Direction)); in test_direction()
863 check_direction(reporter, path, SkPath::kCW_Direction); in test_direction()
885 path.addCircle(0, 0, SkIntToScalar(2), SkPath::kCW_Direction); in test_direction()
887 check_direction(reporter, path, SkPath::kCW_Direction); in test_direction()
890 path.addCircle(0, 0, SkIntToScalar(1), SkPath::kCW_Direction); in test_direction()
905 check_direction(reporter, path, SkPath::kCW_Direction); in test_direction()
1088 check_direction(reporter, tinyConvexPolygon, SkPath::kCW_Direction); in test_path_crbug389050()
1096 check_direction(reporter, platTriangle, SkPath::kCW_Direction); in test_path_crbug389050()
1104 check_direction(reporter, platTriangle, SkPath::kCW_Direction); in test_path_crbug389050()
1127 check_direction(reporter, triLeft, SkPath::kCW_Direction); in test_convexity2()
[all …]
DPathOpsSimplifyRectThreadedTest.cpp27 SkPath::Direction aCW = state.fA >> 2 ? SkPath::kCCW_Direction : SkPath::kCW_Direction; in testSimplify4x4RectsMain()
29 SkPath::Direction bCW = state.fB >> 2 ? SkPath::kCCW_Direction : SkPath::kCW_Direction; in testSimplify4x4RectsMain()
31 SkPath::Direction cCW = state.fC >> 2 ? SkPath::kCCW_Direction : SkPath::kCW_Direction; in testSimplify4x4RectsMain()
33 SkPath::Direction dCW = state.fD >> 2 ? SkPath::kCCW_Direction : SkPath::kCW_Direction; in testSimplify4x4RectsMain()
DPathOpsInverseTest.cpp14 for (int oneDir = SkPath::kCW_Direction; oneDir != SkPath::kCCW_Direction; ++oneDir) { in DEF_TEST()
20 for (int twoDir = SkPath::kCW_Direction; twoDir != SkPath::kCCW_Direction; in DEF_TEST()
DPathOpsOpTest.cpp380 one.addRect(0, 0, 6, 6, SkPath::kCW_Direction); in testIntersect1()
381 two.addRect(3, 3, 9, 9, SkPath::kCW_Direction); in testIntersect1()
387 one.addRect(0, 0, 6, 6, SkPath::kCW_Direction); in testUnion1()
388 two.addRect(3, 3, 9, 9, SkPath::kCW_Direction); in testUnion1()
394 one.addRect(0, 0, 6, 6, SkPath::kCW_Direction); in testDiff1()
395 two.addRect(3, 3, 9, 9, SkPath::kCW_Direction); in testDiff1()
401 one.addRect(0, 0, 6, 6, SkPath::kCW_Direction); in testXor1()
402 two.addRect(3, 3, 9, 9, SkPath::kCW_Direction); in testXor1()
408 one.addRect(0, 0, 6, 6, SkPath::kCW_Direction); in testIntersect2()
409 two.addRect(0, 3, 9, 9, SkPath::kCW_Direction); in testIntersect2()
[all …]
DPathOpsOpCircleThreadedTest.cpp48 state.fD ? SkPath::kCW_Direction : SkPath::kCCW_Direction); in testOpCirclesMain()
51 d ? SkPath::kCW_Direction : SkPath::kCCW_Direction); in testOpCirclesMain()
/external/skia/gm/
Dstrokefill.cpp59 path.addCircle(x, y + SkIntToScalar(200), SkIntToScalar(50), SkPath::kCW_Direction); in onDraw()
66 …ddCircle(x + SkIntToScalar(120), y + SkIntToScalar(200), SkIntToScalar(40), SkPath::kCW_Direction); in onDraw()
76 …ddCircle(x + SkIntToScalar(360), y + SkIntToScalar(200), SkIntToScalar(50), SkPath::kCW_Direction); in onDraw()
77 SkASSERT(path2.cheapIsDirection(SkPath::kCW_Direction)); in onDraw()
84 path3.addRect(r, SkPath::kCW_Direction); in onDraw()
95 path4.addRect(r, SkPath::kCW_Direction); in onDraw()
111 path4.addRect(r, SkPath::kCW_Direction); in onDraw()
112 SkASSERT(path4.cheapIsDirection(SkPath::kCW_Direction)); in onDraw()
Dstrokes.cpp149 path->addRect(bounds, SkPath::kCW_Direction); in make0()
150 path->addRect(inset(bounds), SkPath::kCW_Direction); in make0()
155 path->addRect(bounds, SkPath::kCW_Direction); in make1()
161 path->addOval(bounds, SkPath::kCW_Direction); in make2()
162 path->addOval(inset(bounds), SkPath::kCW_Direction); in make2()
167 path->addOval(bounds, SkPath::kCW_Direction); in make3()
173 path->addRect(bounds, SkPath::kCW_Direction); in make4()
176 path->addOval(r, SkPath::kCW_Direction); in make4()
181 path->addRect(bounds, SkPath::kCW_Direction); in make5()
Dblurs.cpp121 path.addRect(outer, SkPath::kCW_Direction); in onDraw()
152 path.addRect(outer, SkPath::kCW_Direction); in onDraw()
153 path.addRect(inner, SkPath::kCW_Direction); in onDraw()
Dconvexpaths.cpp66 SkPath::kCW_Direction); in makePaths()
73 50 * SK_Scalar1, SkPath::kCW_Direction); in makePaths()
79 SkPath::kCW_Direction); in makePaths()
95 SkPath::kCW_Direction); in makePaths()
Dcircularclips.cpp23 fCircle1.addCircle(fX1, fY, fR, SkPath::kCW_Direction); in onOnceBeforeDraw()
24 fCircle2.addCircle(fX2, fY, fR, SkPath::kCW_Direction); in onOnceBeforeDraw()
Dconvex_all_line_paths.cpp221 if (SkPath::kCW_Direction == dir) { in GetPath()
256 SkPath path = GetPath(index, 0, SkPath::kCW_Direction); in drawPath()
266 const SkPath::Direction dirs[2] = { SkPath::kCW_Direction, SkPath::kCCW_Direction }; in drawPath()
Dpathinterior.cpp75 … SkPath::Direction outerDir = outerCW ? SkPath::kCW_Direction : SkPath::kCCW_Direction; in onDraw()
76 … SkPath::Direction innerDir = innerCW ? SkPath::kCW_Direction : SkPath::kCCW_Direction; in onDraw()
Dnested.cpp97 AddShape(&path, outerRect, (Shapes) outerShape, SkPath::kCW_Direction); in onDraw()
Dinversepaths.cpp30 path.addCircle(cx, cy, d/2, SkPath::kCW_Direction); in generate_circle()
Dpatheffects.cpp140 path.addOval(r, SkPath::kCW_Direction); in onDraw()
/external/skia/include/core/
DSkPath.h498 kCW_Direction, enumerator
509 kUnknown_Direction, kCCW_Direction, kCW_Direction in OppositeDirection()
604 void addRect(const SkRect& rect, Direction dir = kCW_Direction);
621 Direction dir = kCW_Direction);
630 void addOval(const SkRect& oval, Direction dir = kCW_Direction);
645 Direction dir = kCW_Direction);
664 Direction dir = kCW_Direction);
679 Direction dir = kCW_Direction);
687 void addRRect(const SkRRect& rrect, Direction dir = kCW_Direction);
/external/skia/bench/
DBlurRectsBench.cpp37 path.addRect(fOuter, SkPath::kCW_Direction); in onDraw()
38 path.addRect(fInner, SkPath::kCW_Direction); in onDraw()
/external/skia/experimental/SimpleCocoaApp/
DSimpleApp.mm77 path.addRect(10, 10, 100, 100, SkPath::kCW_Direction);
78 path.addRect(20, 20, 50, 50, SkPath::kCW_Direction);
84 path.addRect(10, 10, 100, 100, SkPath::kCW_Direction);
85 path.addRect(20, 20, 80, 80, SkPath::kCW_Direction);
/external/skia/src/core/
DSkStroke.h64 SkPath::Direction = SkPath::kCW_Direction) const;
DSkPath.cpp198 if (SkPath::kCW_Direction == dir) { in check_edge_against_rect()
504 *direction = firstDirection == ((lastDirection + 1) & 3) ? kCCW_Direction : kCW_Direction; in isRectContour()
841 SkASSERT(SkPath::kCW_Direction == dir || SkPath::kCCW_Direction == dir); in assert_known_direction()
1003 if (kCW_Direction == dir) { in addRRect()
1168 this->addOval(oval, sweepAngle > 0 ? kCW_Direction : kCCW_Direction); in addArc()
2182 fDirection = (kRight_DirChange == dir) ? SkPath::kCW_Direction in addVec()
2443 *dir = cross > 0 ? SkPath::kCW_Direction : SkPath::kCCW_Direction; in crossToDir()
/external/skia/samplecode/
DSampleStrokePath.cpp114 fPath.addCircle(0, 0, SkIntToScalar(50), SkPath::kCW_Direction); in onOnceBeforeDraw()
115 fPath.addCircle(0, SkIntToScalar(-50), SkIntToScalar(30), SkPath::kCW_Direction); in onOnceBeforeDraw()
/external/skia/experimental/SkV8Example/
DPath2DBuilder.cpp212 SkPath::Direction dir = SkPath::kCW_Direction; in Oval()

12