Home
last modified time | relevance | path

Searched refs:kCW (Results 1 – 25 of 78) sorted by relevance

1234

/external/skia/tests/
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 …]
DRRectInPathTest.cpp123 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6); in test_undetected_paths()
136 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6); in test_undetected_paths()
149 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6); in test_undetected_paths()
162 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6); in test_undetected_paths()
169 for (auto dir : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in test_tricky_radii()
196 for (auto dir : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in test_empty_crbug_458524()
214 for (auto dir : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in test_inset()
243 for (auto dir : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in test_9patch_rrect()
267 for (auto dir : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in test_round_rect_basic()
341 for (auto dir : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in test_round_rect_rects()
[all …]
DPathOpsOpRectThreadedTest.cpp38 SkIntToScalar(state.fB), SkPathDirection::kCW); in testPathOpsRectsMain()
40 SkIntToScalar(state.fD), SkPathDirection::kCW); in testPathOpsRectsMain()
44 SkIntToScalar(b), SkPathDirection::kCW); in testPathOpsRectsMain()
46 SkIntToScalar(d), SkPathDirection::kCW); in testPathOpsRectsMain()
132 SkIntToScalar(state.fB), SkPathDirection::kCW); in testPathOpsFastMain()
138 SkIntToScalar(state.fD), SkPathDirection::kCW); in testPathOpsFastMain()
DPathOpsBuilderTest.cpp29 rectPath.addRect(0, 1, 2, 3, SkPathDirection::kCW); in DEF_TEST()
55 rect2.addRect(2, 1, 4, 3, SkPathDirection::kCW); in DEF_TEST()
68 circle1.addCircle(5, 6, 4, SkPathDirection::kCW); in DEF_TEST()
70 circle3.addCircle(6, 5, 6, SkPathDirection::kCW); 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()
DPathOpsSimplifyRectThreadedTest.cpp25 SkPathDirection aCW = state.fA >> 2 ? SkPathDirection::kCCW : SkPathDirection::kCW; in testSimplify4x4RectsMain()
27 SkPathDirection bCW = state.fB >> 2 ? SkPathDirection::kCCW : SkPathDirection::kCW; in testSimplify4x4RectsMain()
29 SkPathDirection cCW = state.fC >> 2 ? SkPathDirection::kCCW : SkPathDirection::kCW; in testSimplify4x4RectsMain()
31 SkPathDirection dCW = state.fD >> 2 ? SkPathDirection::kCCW : SkPathDirection::kCW; in testSimplify4x4RectsMain()
DPathOpsAsWindingTest.cpp122 for (auto dirA : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in DEF_TEST()
123 for (auto dirB : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in DEF_TEST()
143 test.addPoly(SkPathDirection::kCW == dirA ? revBccw : revBcw, true); in DEF_TEST()
159 for (auto dirA : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in DEF_TEST()
160 for (auto dirB : {SkPathDirection::kCW, SkPathDirection::kCCW}) { in DEF_TEST()
DPathTest.cpp1102 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1124 path.addCircle(0, 0, SkIntToScalar(2), SkPathDirection::kCW); in test_direction()
1126 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1129 path.addCircle(0, 0, SkIntToScalar(1), SkPathDirection::kCW); in test_direction()
1144 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1327 check_direction(reporter, tinyConvexPolygon, SkPathFirstDirection::kCW); in test_path_crbug389050()
1335 check_direction(reporter, platTriangle, SkPathFirstDirection::kCW); in test_path_crbug389050()
1343 check_direction(reporter, platTriangle, SkPathFirstDirection::kCW); in test_path_crbug389050()
1366 check_direction(reporter, triLeft, SkPathFirstDirection::kCW); in test_convexity2()
1383 check_direction(reporter, square, SkPathFirstDirection::kCW); in test_convexity2()
[all …]
DPathOpsOpCircleThreadedTest.cpp31 state.fD ? SkPathDirection::kCW : SkPathDirection::kCCW); in testOpCirclesMain()
34 d ? SkPathDirection::kCW : SkPathDirection::kCCW); in testOpCirclesMain()
/external/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()
DChromeMDRefreshTab.cpp28 SkPathDirection::kCW, scaled_endcap_radius * 2, -1); in GetBorderPath()
50 SkPathDirection::kCW, right - scaled_endcap_radius + 1, in GetBorderPath()
92 SkPathDirection::kCW, right - scaled_endcap_radius, in GetInteriorPath()
126 SkPathDirection::kCW, 0, bottom); in GetInteriorPath()
DPath_Direction.cpp19 for (auto direction : { SkPathDirection::kCW, SkPathDirection::kCCW } ) {
26 canvas->drawString(SkPathDirection::kCW == direction ? "CW" : "CCW", rect.centerX(),
DPath_addOval_2.cpp19 for (auto direction : { SkPathDirection::kCW, SkPathDirection::kCCW } ) {
29 canvas->drawString(SkPathDirection::kCW == direction ? "clockwise" : "counterclockwise",
DPath_FillType_b.cpp9 path.addRect({20, 10, 80, 70}, SkPathDirection::kCW);
10 path.addRect({40, 30, 100, 90}, SkPathDirection::kCW);
DChromeMDRefreshTabs.cpp26 SkPathDirection::kCW, right - endcap_radius, bottom - endcap_radius); in GetInteriorPath()
59 SkPathDirection::kCW, 0, bottom); in GetInteriorPath()
/external/skia/include/core/
DSkPath.h70 static SkPath Rect(const SkRect&, SkPathDirection = SkPathDirection::kCW,
72 static SkPath Oval(const SkRect&, SkPathDirection = SkPathDirection::kCW);
75 SkPathDirection dir = SkPathDirection::kCW);
76 static SkPath RRect(const SkRRect&, SkPathDirection dir = SkPathDirection::kCW);
79 SkPathDirection dir = SkPathDirection::kCW);
1077 SkPath& addRect(const SkRect& rect, SkPathDirection dir = SkPathDirection::kCW) {
1082 SkPathDirection dir = SkPathDirection::kCW) {
1097 SkPath& addOval(const SkRect& oval, SkPathDirection dir = SkPathDirection::kCW);
1126 SkPathDirection dir = SkPathDirection::kCW);
1165 SkPathDirection dir = SkPathDirection::kCW);
[all …]
DSkPathBuilder.h185 SkPathBuilder& addRect(const SkRect& rect, SkPathDirection dir = SkPathDirection::kCW) {
188 SkPathBuilder& addOval(const SkRect& rect, SkPathDirection dir = SkPathDirection::kCW) {
192 SkPathBuilder& addRRect(const SkRRect& rrect, SkPathDirection dir = SkPathDirection::kCW) {
194 return this->addRRect(rrect, dir, dir == SkPathDirection::kCW ? 6 : 7);
198 SkPathDirection dir = SkPathDirection::kCW);
/external/skia/gm/
Dstrokefill.cpp293 path.addCircle(x, y + SkIntToScalar(200), SkIntToScalar(50), SkPathDirection::kCW);
300 …addCircle(x + SkIntToScalar(120), y + SkIntToScalar(200), SkIntToScalar(40), SkPathDirection::kCW);
310 …addCircle(x + SkIntToScalar(360), y + SkIntToScalar(200), SkIntToScalar(50), SkPathDirection::kCW);
311 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCW);
318 path3.addRect(r, SkPathDirection::kCW);
329 path4.addRect(r, SkPathDirection::kCW);
345 path4.addRect(r, SkPathDirection::kCW);
346 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCW);
Dconvexpaths.cpp67 fPaths.push_back(SkPath::Rect({0, 0, 100, 100}, SkPathDirection::kCW)); in makePaths()
69 fPaths.push_back(SkPath::Circle(50, 50, 50, SkPathDirection::kCW)); in makePaths()
70 fPaths.push_back(SkPath::Oval(SkRect::MakeXYWH(0, 0, 50, 100), SkPathDirection::kCW)); in makePaths()
74 SkPathDirection::kCW)); in makePaths()
Dstrokes.cpp347 path->addRect(bounds, SkPathDirection::kCW); in make0()
348 path->addRect(inset(bounds), SkPathDirection::kCW); in make0()
353 path->addRect(bounds, SkPathDirection::kCW); in make1()
359 path->addOval(bounds, SkPathDirection::kCW); in make2()
360 path->addOval(inset(bounds), SkPathDirection::kCW); in make2()
365 path->addOval(bounds, SkPathDirection::kCW); in make3()
371 path->addRect(bounds, SkPathDirection::kCW); in make4()
374 path->addOval(r, SkPathDirection::kCW); in make4()
379 path->addRect(bounds, SkPathDirection::kCW); in make5()
Dpolygonoffset.cpp447 if (SkPathDirection::kCW == dir) { in GetConvexPolygon()
482 if (SkPathDirection::kCW == dir) { in GetSimplePolygon()
518 GetConvexPolygon(index, SkPathDirection::kCW, &data, &numPts); in drawPolygon()
520 GetSimplePolygon(index, SkPathDirection::kCW, &data, &numPts); in drawPolygon()
534 const SkPathDirection dirs[2] = { SkPathDirection::kCW, SkPathDirection::kCCW }; in drawPolygon()
Dblurs.cpp91 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
109 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
110 .addRect(inner, SkPathDirection::kCW)
Dcircularclips.cpp31 fCircle1 = SkPath::Circle(fX1, fY, fR, SkPathDirection::kCW); in onOnceBeforeDraw()
32 fCircle2 = SkPath::Circle(fX2, fY, fR, SkPathDirection::kCW); in onOnceBeforeDraw()
Dpathinterior.cpp79 … SkPathDirection outerDir = outerCW ? SkPathDirection::kCW : SkPathDirection::kCCW; in onDraw()
80 … SkPathDirection innerDir = innerCW ? SkPathDirection::kCW : SkPathDirection::kCCW; in onDraw()
Darcto.cpp82 SkPathDirection::kCW, {oval.right(), oval.bottom()});
116 .arcTo({0, 0}, 0, SkPathBuilder::kLarge_ArcSize, SkPathDirection::kCW, {200, 200});
120 .arcTo({80, 80}, 0, SkPathBuilder::kLarge_ArcSize, SkPathDirection::kCW, {200, 100});
/external/skia/bench/
DBlurRectsBench.cpp37 path.addRect(fOuter, SkPathDirection::kCW); in onDraw()
38 path.addRect(fInner, SkPathDirection::kCW); in onDraw()

1234