/third_party/skia/tests/ |
D | RRectInPathTest.cpp | 15 SkPathDirection* dir, unsigned* start) { in path_contains_rrect() 33 SkPathDirection xd = SkPathDirection::kCCW; in path_contains_rrect() 44 SkPathDirection dir, unsigned start) { in inner_path_contains_rrect() 55 SkPathDirection outDir; in inner_path_contains_rrect() 63 SkPathDirection dir, unsigned start) { in path_contains_rrect_check() 72 SkPathDirection dir, unsigned start) { in path_contains_rrect_nocheck() 80 SkVector v[4], SkPathDirection dir, unsigned start) { in path_contains_rrect_check() 88 ForceIsRRect_Private(SkPath* path, SkPathDirection dir, unsigned start) { in ForceIsRRect_Private() 89 path->fPathRef->setIsRRect(true, dir == SkPathDirection::kCCW, start); in ForceIsRRect_Private() 94 SkPathDirection dir, unsigned start) { in force_path_contains_rrect() [all …]
|
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() 70 aCW == SkPathDirection::kCCW ? "C" : ""); in testSimplify4x4RectsMain() 102 bCW == SkPathDirection::kCCW ? "C" : ""); in testSimplify4x4RectsMain() 134 cCW == SkPathDirection::kCCW ? "C" : ""); in testSimplify4x4RectsMain() 166 dCW == SkPathDirection::kCCW ? "C" : ""); in testSimplify4x4RectsMain()
|
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 | PathOpsBuilderTest.cpp | 29 rectPath.addRect(0, 1, 2, 3, SkPathDirection::kCW); in DEF_TEST() 33 SkPathDirection dir; in DEF_TEST() 36 REPORTER_ASSERT(reporter, dir == SkPathDirection::kCCW); in DEF_TEST() 42 rectPath.addRect(0, 1, 2, 3, SkPathDirection::kCCW); in DEF_TEST() 47 REPORTER_ASSERT(reporter, dir == 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() 68 circle1.addCircle(5, 6, 4, SkPathDirection::kCW); in DEF_TEST() 69 circle2.addCircle(7, 4, 8, SkPathDirection::kCCW); in DEF_TEST() 70 circle3.addCircle(6, 5, 6, SkPathDirection::kCW); in DEF_TEST() [all …]
|
D | PathOpsAsWindingTest.cpp | 12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPathDirection dir) { in build_squircle() 14 bool reverse = SkPathDirection::kCCW == dir; in build_squircle() 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 | PathOpsInverseTest.cpp | 10 const SkPathDirection dirs[] = {SkPathDirection::kCW, SkPathDirection::kCCW}; in DEF_TEST()
|
/third_party/skia/include/core/ |
D | SkPath.h | 70 static SkPath Rect(const SkRect&, SkPathDirection = SkPathDirection::kCW, 72 static SkPath Oval(const SkRect&, SkPathDirection = SkPathDirection::kCW); 73 static SkPath Oval(const SkRect&, SkPathDirection, unsigned startIndex); 75 SkPathDirection dir = SkPathDirection::kCW); 76 static SkPath RRect(const SkRRect&, SkPathDirection dir = SkPathDirection::kCW); 77 static SkPath RRect(const SkRRect&, SkPathDirection, unsigned startIndex); 79 SkPathDirection dir = SkPathDirection::kCW); 924 SkPathDirection sweep, SkScalar x, SkScalar y); 949 SkPath& arcTo(const SkPoint r, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep, in arcTo() 981 SkPathDirection sweep, SkScalar dx, SkScalar dy); [all …]
|
D | SkPathBuilder.h | 160 SkPathBuilder& arcTo(SkPoint r, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep, 181 SkPathBuilder& addRect(const SkRect&, SkPathDirection, unsigned startIndex); 182 SkPathBuilder& addOval(const SkRect&, SkPathDirection, unsigned startIndex); 183 SkPathBuilder& addRRect(const SkRRect&, SkPathDirection, unsigned startIndex); 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);
|
/third_party/skia/modules/sksg/include/ |
D | SkSGRect.h | 35 SG_MAPPED_ATTRIBUTE(Direction , SkPathDirection, fAttrContaier) 55 SkPathDirection getDirection() const { in getDirection() 56 return static_cast<SkPathDirection>(fDirection); in getDirection() 58 void setDirection(SkPathDirection dir) { fDirection = SkTo<uint8_t>(dir); } in setDirection() 63 AttrContainer fAttrContaier = { (int)SkPathDirection::kCW, 0 }; 78 SG_MAPPED_ATTRIBUTE(Direction , SkPathDirection, fAttrContaier) 98 SkPathDirection getDirection() const { in getDirection() 99 return static_cast<SkPathDirection>(fDirection); in getDirection() 101 void setDirection(SkPathDirection dir) { fDirection = SkTo<uint8_t>(dir); } in setDirection() 106 AttrContainer fAttrContaier = { (int)SkPathDirection::kCW, 0 };
|
/third_party/skia/gm/ |
D | pathcontourstart.cpp | 57 drawDirs(canvas, [](const SkRect& rect, SkPathDirection dir, unsigned startIndex) { in onDraw() 61 drawDirs(canvas, [](const SkRect& rect, SkPathDirection dir, unsigned startIndex) { in onDraw() 65 drawDirs(canvas, [](const SkRect& rect, SkPathDirection dir, unsigned startIndex) { in onDraw() 72 drawDirs(canvas, [](const SkRect& rect, SkPathDirection dir, unsigned startIndex) { in onDraw() 78 drawDirs(canvas, [](const SkRect& rect, SkPathDirection dir, unsigned startIndex) { in onDraw() 94 SkPath (*makePath)(const SkRect&, SkPathDirection, unsigned)) const { in drawDirs() argument 95 drawOneColumn(canvas, SkPathDirection::kCW, makePath); in drawDirs() 97 drawOneColumn(canvas, SkPathDirection::kCCW, makePath); in drawDirs() 101 void drawOneColumn(SkCanvas* canvas, SkPathDirection dir, in drawOneColumn() argument 102 SkPath (*makePath)(const SkRect&, SkPathDirection, unsigned)) const { in drawOneColumn()
|
D | pathinterior.cpp | 79 … SkPathDirection outerDir = outerCW ? SkPathDirection::kCW : SkPathDirection::kCCW; in onDraw() 80 … SkPathDirection innerDir = innerCW ? SkPathDirection::kCW : SkPathDirection::kCCW; in onDraw()
|
D | polygonoffset.cpp | 26 static void create_ngon(int n, SkPoint* pts, SkScalar w, SkScalar h, SkPathDirection dir) { in create_ngon() 31 if (SkPathDirection::kCCW == dir) { in create_ngon() 441 static void GetConvexPolygon(int index, SkPathDirection dir, in GetConvexPolygon() 447 if (SkPathDirection::kCW == dir) { in GetConvexPolygon() 476 static void GetSimplePolygon(int index, SkPathDirection dir, in GetSimplePolygon() 482 if (SkPathDirection::kCW == dir) { in GetSimplePolygon() 517 GetConvexPolygon(index, SkPathDirection::kCW, &data, &numPts); in drawPolygon() 519 GetSimplePolygon(index, SkPathDirection::kCW, &data, &numPts); in drawPolygon() 534 const SkPathDirection dirs[2] = { SkPathDirection::kCW, SkPathDirection::kCCW }; in drawPolygon()
|
D | convexpaths.cpp | 67 fPaths.push_back(SkPath::Rect({0, 0, 100, 100}, SkPathDirection::kCW)); in makePaths() 68 fPaths.push_back(SkPath::Rect({0, 0, 100, 100}, SkPathDirection::kCCW)); 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() 71 fPaths.push_back(SkPath::Oval(SkRect::MakeXYWH(0, 0, 100, 5), SkPathDirection::kCCW)); in makePaths() 72 fPaths.push_back(SkPath::Oval(SkRect::MakeXYWH(0, 0, 1, 100), SkPathDirection::kCCW)); in makePaths() 74 SkPathDirection::kCW)); in makePaths()
|
D | strokefill.cpp | 293 path.addCircle(x, y + SkIntToScalar(200), SkIntToScalar(50), SkPathDirection::kCW); 294 path.addCircle(x, y + SkIntToScalar(200), SkIntToScalar(40), SkPathDirection::kCCW); 299 …ddCircle(x + SkIntToScalar(120), y + SkIntToScalar(200), SkIntToScalar(50), SkPathDirection::kCCW); 300 …addCircle(x + SkIntToScalar(120), y + SkIntToScalar(200), SkIntToScalar(40), SkPathDirection::kCW); 304 …ddCircle(x + SkIntToScalar(240), y + SkIntToScalar(200), SkIntToScalar(50), SkPathDirection::kCCW); 310 …addCircle(x + SkIntToScalar(360), y + SkIntToScalar(200), SkIntToScalar(50), SkPathDirection::kCW); 318 path3.addRect(r, SkPathDirection::kCW); 320 path3.addRect(r, SkPathDirection::kCCW); 327 path4.addRect(r, SkPathDirection::kCCW); 329 path4.addRect(r, SkPathDirection::kCW); [all …]
|
/third_party/skia/docs/examples/ |
D | ChromeMDRefreshTab.cpp | 19 SkPathDirection::kCCW, scaled_endcap_radius - 1, in GetBorderPath() 28 SkPathDirection::kCW, scaled_endcap_radius * 2, -1); in GetBorderPath() 50 SkPathDirection::kCW, right - scaled_endcap_radius + 1, in GetBorderPath() 62 SkPathDirection::kCCW, right, bottom - 1); in GetBorderPath() 92 SkPathDirection::kCW, right - scaled_endcap_radius, in GetInteriorPath() 103 SkPathDirection::kCCW, right - scaled_endcap_radius * 2, 0); in GetInteriorPath() 117 SkPathDirection::kCCW, scaled_endcap_radius, scaled_endcap_radius); in GetInteriorPath() 126 SkPathDirection::kCW, 0, bottom); in GetInteriorPath()
|
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() 11 path.addRect({20, 70, 40, 90}, SkPathDirection::kCCW); in draw()
|
D | ChromeMDRefreshTabs.cpp | 26 SkPathDirection::kCW, right - endcap_radius, bottom - endcap_radius); in GetInteriorPath() 36 SkPathDirection::kCCW, right - endcap_width, 0); in GetInteriorPath() 50 SkPathDirection::kCCW, endcap_radius, endcap_radius); in GetInteriorPath() 59 SkPathDirection::kCW, 0, bottom); in GetInteriorPath()
|
D | Path_ArcSize.cpp | 10 for (auto sweep: { SkPathDirection::kCW, SkPathDirection::kCCW } ) { in draw() 15 if (SkPathDirection::kCCW == sweep && SkPath::kLarge_ArcSize == arcSize) { in draw()
|
D | Path_arcTo_4.cpp | 10 for (auto sweep: { SkPathDirection::kCW, SkPathDirection::kCCW } ) { in draw() 15 if (SkPathDirection::kCCW == sweep && SkPath::kLarge_ArcSize == arcSize) { in draw()
|
D | Path_Direction.cpp | 19 for (auto direction : { SkPathDirection::kCW, SkPathDirection::kCCW } ) { 26 canvas->drawString(SkPathDirection::kCW == direction ? "CW" : "CCW", rect.centerX(),
|
/third_party/skia/src/gpu/geometry/ |
D | GrShape.h | 59 inline static constexpr SkPathDirection kDefaultDir = SkPathDirection::kCW; 104 SkPathDirection dir() const { return fCW ? SkPathDirection::kCW : SkPathDirection::kCCW; } in dir() 111 void setPathWindingParams(SkPathDirection dir, unsigned start) { in setPathWindingParams() 114 fCW = dir == SkPathDirection::kCW; in setPathWindingParams() 263 void simplifyRRect(const SkRRect& rrect, SkPathDirection dir, unsigned start, unsigned flags); 264 void simplifyRect(const SkRect& rect, SkPathDirection dir, unsigned start, unsigned flags);
|
/third_party/skia/src/core/ |
D | SkPathPriv.h | 31 static SkPathFirstDirection AsFirstDirection(SkPathDirection dir) { in AsFirstDirection() 104 SkPathDirection* direction, unsigned* start); 234 static bool IsOval(const SkPath& path, SkRect* rect, SkPathDirection* dir, unsigned* start) { in IsOval() 238 *dir = isCCW ? SkPathDirection::kCCW : SkPathDirection::kCW; in IsOval() 261 static bool IsRRect(const SkPath& path, SkRRect* rrect, SkPathDirection* dir, in IsRRect() 266 *dir = isCCW ? SkPathDirection::kCCW : SkPathDirection::kCW; in IsRRect() 340 const SkPoint** ptsPtr, bool* isClosed, SkPathDirection* direction, 355 SkPathDirection dirs[2] = nullptr);
|
D | SkPathBuilder.cpp | 408 … return this->addOval(oval, sweepAngle > 0 ? SkPathDirection::kCW : SkPathDirection::kCCW, in addArc() 455 SkPathDirection arcSweep, SkPoint endPt) { in arcTo() 506 …if ((arcSweep == SkPathDirection::kCCW) != SkToBool(arcLarge)) { // flipped from the original imp… in arcTo() 518 …if (thetaArc < 0 && (arcSweep == SkPathDirection::kCW)) { // arcSweep flipped from the original i… in arcTo() 520 …} else if (thetaArc > 0 && (arcSweep != SkPathDirection::kCW)) { // arcSweep flipped from the ori… in arcTo() 590 PointIterator(SkPathDirection dir, unsigned startIndex) in PointIterator() 592 , fAdvance(dir == SkPathDirection::kCW ? 1 : N - 1) in PointIterator() 615 RectPointIterator(const SkRect& rect, SkPathDirection dir, unsigned startIndex) in RectPointIterator() 627 OvalPointIterator(const SkRect& oval, SkPathDirection dir, unsigned startIndex) in OvalPointIterator() 642 RRectPointIterator(const SkRRect& rrect, SkPathDirection dir, unsigned startIndex) in RRectPointIterator() [all …]
|
D | SkPathMakers.h | 17 SkPath_PointIterator(SkPathDirection dir, unsigned startIndex) in SkPath_PointIterator() 19 , fAdvance(dir == SkPathDirection::kCW ? 1 : N - 1) { } in SkPath_PointIterator() 41 SkPath_RectPointIterator(const SkRect& rect, SkPathDirection dir, unsigned startIndex) in SkPath_RectPointIterator() 53 SkPath_OvalPointIterator(const SkRect& oval, SkPathDirection dir, unsigned startIndex) in SkPath_OvalPointIterator() 68 SkPath_RRectPointIterator(const SkRRect& rrect, SkPathDirection dir, unsigned startIndex) in SkPath_RRectPointIterator()
|
/third_party/skia/fuzz/ |
D | FuzzCommon.cpp | 55 SkPathDirection dir; in FuzzNicePath() 115 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath() 120 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath() 127 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath() 133 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath() 140 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath() 153 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath() 159 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath() 164 dir = static_cast<SkPathDirection>(ui); in FuzzNicePath()
|