1433 {
1435
1437
1439
1440 if (radius <= 0) {
1441 return;
1442 }
1443
1444
1445 {
1447 bool isClosed = false;
1449 if (
src.isRect(&
rect, &isClosed, &
dir) && isClosed) {
1451
1452 if (
src.isInverseFillType()) {
1454 dst->toggleInverseFillType();
1455 }
1456 return;
1457 }
1458 }
1459
1460
1461
1463 src.isLastContourClosed() &&
src.isConvex();
1464
1466 fResScale, ignoreCenter);
1469
1470 for (;;) {
1472 switch (iter.next(pts)) {
1474 stroker.moveTo(pts[0]);
1475 break;
1477 stroker.lineTo(pts[1], &iter);
1479 break;
1481 stroker.quadTo(pts[1], pts[2]);
1483 break;
1485 stroker.conicTo(pts[1], pts[2], iter.conicWeight());
1487 } break;
1489 stroker.cubicTo(pts[1], pts[2], pts[3]);
1491 break;
1494
1495
1496
1497 if (stroker.hasOnlyMoveTo()) {
1498 stroker.lineTo(stroker.moveToPt());
1499 goto ZERO_LENGTH;
1500 }
1501
1502
1503
1504 if (stroker.isCurrentContourEmpty()) {
1505 ZERO_LENGTH:
1507 break;
1508 }
1509 }
1511 break;
1513 goto DONE;
1514 }
1515 }
1516DONE:
1518
1519 if (fDoFill && !ignoreCenter) {
1521 dst->reverseAddPath(
src);
1522 } else {
1524 }
1525 } else {
1526
1527
1528
1529
1530#if 0
1531
1533 SkPoint pts[] = { 146.333328, 192.333328, 300.333344, 293.333344 };
1535 paint.setStrokeWidth(7);
1537 canvas->
drawLine(pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY,
paint);
1538 }
1539#endif
1540#if 0
1541 if (2 ==
src.countPoints()) {
1542 dst->setIsConvex(
true);
1543 }
1544#endif
1545 }
1546
1547
1548 if (
src.isInverseFillType()) {
1550 dst->toggleInverseFillType();
1551 }
1552}
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
@ kButt_Cap
no stroke extension
static SkPathFirstDirection ComputeFirstDirection(const SkPath &)
SkPaint::Cap getCap() const
void strokeRect(const SkRect &rect, SkPath *result, SkPathDirection=SkPathDirection::kCW) const
SkPaint::Join getJoin() const
sk_sp< SkBlender > blender SkRect rect
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir