/external/skia/tests/ |
D | PathOpsSimplifyTest.cpp | 444 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 …]
|
D | RRectInPathTest.cpp | 123 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 …]
|
D | PathOpsOpRectThreadedTest.cpp | 38 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()
|
D | PathOpsBuilderTest.cpp | 29 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()
|
D | PathOpsSimplifyRectThreadedTest.cpp | 25 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()
|
D | PathOpsAsWindingTest.cpp | 122 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()
|
D | PathTest.cpp | 1102 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 …]
|
D | PathOpsOpCircleThreadedTest.cpp | 31 state.fD ? SkPathDirection::kCW : SkPathDirection::kCCW); in testOpCirclesMain() 34 d ? SkPathDirection::kCW : SkPathDirection::kCCW); in testOpCirclesMain()
|
/external/skia/docs/examples/ |
D | Path_FillType_a.cpp | 8 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()
|
D | ChromeMDRefreshTab.cpp | 28 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()
|
D | Path_Direction.cpp | 19 for (auto direction : { SkPathDirection::kCW, SkPathDirection::kCCW } ) { 26 canvas->drawString(SkPathDirection::kCW == direction ? "CW" : "CCW", rect.centerX(),
|
D | Path_addOval_2.cpp | 19 for (auto direction : { SkPathDirection::kCW, SkPathDirection::kCCW } ) { 29 canvas->drawString(SkPathDirection::kCW == direction ? "clockwise" : "counterclockwise",
|
D | Path_FillType_b.cpp | 9 path.addRect({20, 10, 80, 70}, SkPathDirection::kCW); 10 path.addRect({40, 30, 100, 90}, SkPathDirection::kCW);
|
D | ChromeMDRefreshTabs.cpp | 26 SkPathDirection::kCW, right - endcap_radius, bottom - endcap_radius); in GetInteriorPath() 59 SkPathDirection::kCW, 0, bottom); in GetInteriorPath()
|
/external/skia/include/core/ |
D | SkPath.h | 70 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 …]
|
D | SkPathBuilder.h | 185 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/ |
D | strokefill.cpp | 293 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);
|
D | convexpaths.cpp | 67 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()
|
D | strokes.cpp | 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() 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()
|
D | polygonoffset.cpp | 447 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()
|
D | blurs.cpp | 91 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW) 109 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW) 110 .addRect(inner, SkPathDirection::kCW)
|
D | circularclips.cpp | 31 fCircle1 = SkPath::Circle(fX1, fY, fR, SkPathDirection::kCW); in onOnceBeforeDraw() 32 fCircle2 = SkPath::Circle(fX2, fY, fR, SkPathDirection::kCW); in onOnceBeforeDraw()
|
D | pathinterior.cpp | 79 … SkPathDirection outerDir = outerCW ? SkPathDirection::kCW : SkPathDirection::kCCW; in onDraw() 80 … SkPathDirection innerDir = innerCW ? SkPathDirection::kCW : SkPathDirection::kCCW; in onDraw()
|
D | arcto.cpp | 82 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/ |
D | BlurRectsBench.cpp | 37 path.addRect(fOuter, SkPathDirection::kCW); in onDraw() 38 path.addRect(fInner, SkPathDirection::kCW); in onDraw()
|