40 {
"M1,1 l-2.58-2.828-3.82-0.113, 1.9-3.3223-1.08-3.6702, 3.75,0.7744,3.16-2.1551,"
41 "0.42,3.8008,3.02,2.3384-3.48,1.574-1.29,3.601z",
42 { -5.39999962f, -10.3142f, 5.77000046f, 1.f } },
43 {
"", { 0, 0, 0, 0 } },
45 {
"M-5.5,-0.5 Q 0 0 6,6.50",
51 for (
size_t i = 0; i < std::size(
gRec); i++) {
55 const SkRect& expectedBounds =
gRec[i].fBounds;
56 const SkRect& pathBounds = path.getBounds();
69 p.addRoundRect(r, 4, 4.5f);
89 {
"H100 200 ", 3, 3 },
90 {
"H-100-200", 3, 3 },
91 {
"H+100+200", 3, 3 },
93 {
"H-.10-.20", 3, 3 },
94 {
"H+.10+.20", 3, 3 },
96 {
"L100 100 200 200" , 3, 3 },
97 {
"L-100-100-200-200", 3, 3 },
98 {
"L+100+100+200+200", 3, 3 },
99 {
"L.10.10.20.20" , 3, 3 },
100 {
"L-.10-.10-.20-.20", 3, 3 },
101 {
"L+.10+.10+.20+.20", 3, 3 },
103 {
"C100 100 200 200 300 300 400 400 500 500 600 600" , 3, 7 },
104 {
"C100-100-200-200-300-300-400-400-500-500-600-600" , 3, 7 },
105 {
"C100+100+200+200+300+300+400+400+500+500+600+600" , 3, 7 },
106 {
"C.10.10.20.20.30.30.40.40.50.50.60.60" , 3, 7 },
107 {
"C-.10-.10-.20-.20-.30-.30-.40-.40-.50-.50-.60-.60", 3, 7 },
108 {
"C+.10+.10+.20+.20+.30+.30+.40+.40+.50+.50+.60+.60", 3, 7 },
110 {
"c-1.49.71-2.12 2.5-1.4 4 .71 1.49 2.5 2.12 4 1.4z", 4, 7 },
114 for (
size_t i = 0; i < std::size(
gTests); ++i) {
122 const char* arcs =
"M10 10a2.143 2.143 0 100-4.285 2.143 2.143 0 000 4.286";
static const TestCase gTests[]
static void test_to_from(skiatest::Reporter *reporter, const SkPath &path)
static struct @441 gRec[]
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
#define DEF_TEST(name, reporter)
#define REPORTER_ASSERT(r, cond,...)
static SkString ToSVGString(const SkPath &, PathEncoding=PathEncoding::Absolute)
static bool FromSVGString(const char str[], SkPath *)
const char * c_str() const
void setLTRB(float left, float top, float right, float bottom)