Home
last modified time | relevance | path

Searched refs:SkParsePath (Results 1 - 25 of 28) sorted by relevance

12

/third_party/skia/tests/
H A DParsePathTest.cpp8 #include "include/utils/SkParsePath.h"
13 SkParsePath::ToSVGString(path, &str); in test_to_from()
16 bool success = SkParsePath::FromSVGString(str.c_str(), &path2); in test_to_from()
19 SkParsePath::ToSVGString(path2, &str2); in test_to_from()
47 bool success = SkParsePath::FromSVGString(gRec[i].fStr, &path); in DEF_TEST()
71 bool success = SkParsePath::FromSVGString("M 5", &path); in DEF_TEST()
87 bool success = SkParsePath::FromSVGString(spec.c_str(), &path); in DEF_TEST()
126 REPORTER_ASSERT(r, SkParsePath::FromSVGString(gTests[i].fStr, &path)); in DEF_TEST()
135 REPORTER_ASSERT(r, SkParsePath::FromSVGString(arcs, &path)); in DEF_TEST()
H A DPathTest.cpp20 #include "include/utils/SkParsePath.h"
543 SkAssertResult(SkParsePath::FromSVGString(pathBug, &smallPath)); in test_tiny_path_convexity()
546 SkAssertResult(SkParsePath::FromSVGString(pathBug, &largePath)); in test_tiny_path_convexity()
1083 bool valid = SkParsePath::FromSVGString(gDegen[i], &path); in test_direction()
1100 bool valid = SkParsePath::FromSVGString(gCW[i], &path); in test_direction()
1116 bool valid = SkParsePath::FromSVGString(gCCW[i], &path); in test_direction()
2851 bool valid = SkParsePath::FromSVGString(gZeroLengthTests[i].testPath, &p); in test_zero_length_paths()
2956 bool valid = SkParsePath::FromSVGString(gIterTests[i].testPath, &p); in test_iter()
5125 SkAssertResult(SkParsePath::FromSVGString(test, &aPath)); in DEF_TEST()
H A DPathOpsExtendedTest.cpp15 #include "include/utils/SkParsePath.h"
417 SkParsePath::ToSVGString(path, &svg); in json_path_out()
/third_party/skia/docs/examples/
H A DSKIA_LOGO_svg.cpp28 SkParsePath::FromSVGString("M34.63 100.63C44.38 88.57 59.87 82.86 74.88 81.2" in REG_FIDDLE()
40 SkParsePath::FromSVGString("M160.82 82.85L206.05 82.85L206.05 155.15L254.83 82.84" in REG_FIDDLE()
45 SkParsePath::FromSVGString("M426.45 218.16L480.705 218.16L489.31 249.4L538.54 249.42" in REG_FIDDLE()
50 SkParsePath::FromSVGString("M362.64 257.32L335.292 293.392L307.8 257.48L362.64 257.32", in REG_FIDDLE()
H A DSkParsePath_FromSVGString.cpp16 SkParsePath::FromSVGString(pathString, &path); in REG_FIDDLE()
H A DSkParsePath_ToSVGString.cpp18 SkParsePath::ToSVGString(star(), &s); in REG_FIDDLE()
H A Dflag_us_1960.cpp18 SkParsePath::FromSVGString( in REG_FIDDLE()
H A Dflag_us_1792.cpp18 SkParsePath::FromSVGString("M 0 -150 L 88 121 L -143 -46 L 143 -46 L -88 121 Z", &star); in REG_FIDDLE()
/third_party/skia/gm/
H A Ddashcubics.cpp21 #include "include/utils/SkParsePath.h"
62 SkParsePath::FromSVGString(d, &path); in DEF_SIMPLE_GM()
80 SkAssertResult(SkParsePath::FromSVGString(
87 SkAssertResult(SkParsePath::FromSVGString(
94 SkAssertResult(SkParsePath::FromSVGString(
H A Darcto.cpp20 #include "include/utils/SkParsePath.h"
107 SkParsePath::FromSVGString(arcstr, &path); in DEF_SIMPLE_GM()
164 SkAssertResult(SkParsePath::FromSVGString(spec.c_str(), &path)); in DEF_SIMPLE_GM()
224 SkParsePath::FromSVGString(d, &path); in DEF_SIMPLE_GM()
H A Dpatharcto.cpp42 #include "include/utils/SkParsePath.h"
47 SkParsePath::FromSVGString(str, &path); in DEF_SIMPLE_GM()
51 SkParsePath::FromSVGString(str2, &path2); in DEF_SIMPLE_GM()
H A Dcrbug_691386.cpp13 #include "include/utils/SkParsePath.h"
17 if (!SkParsePath::FromSVGString("M -1 0 A 1 1 0 0 0 1 0 Z", &path)) { in DEF_SIMPLE_GM_CAN_FAIL()
H A Dstrokes.cpp22 #include "include/utils/SkParsePath.h"
105 SkAssertResult(SkParsePath::FromSVGString("M0,0h0M10,0h0M20,0h0", &fMoveHfPath));
106 SkAssertResult(SkParsePath::FromSVGString("M0,0zM10,0zM20,0z", &fMoveZfPath));
107 SkAssertResult(SkParsePath::FromSVGString("M0,0h25", &fDashedfPath));
108 SkAssertResult(SkParsePath::FromSVGString("M 0 0 C 0 0 0 0 0 0", &fCubicPath));
109 SkAssertResult(SkParsePath::FromSVGString("M 0 0 Q 0 0 0 0", &fQuadPath));
110 SkAssertResult(SkParsePath::FromSVGString("M 0 0 L 0 0", &fLinePath));
H A Dpath_stroke_with_zero_length.cpp23 #include "include/utils/SkParsePath.h"
170 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths()
250 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths_dbl_contour()
H A Dpathopsinverse.cpp123 #include "include/utils/SkParsePath.h"
136 SkParsePath::FromSVGString(svgStr[i], &path[i]); in DEF_SIMPLE_GM()
/third_party/skia/samplecode/
H A DSampleArc.cpp26 #include "include/utils/SkParsePath.h"
34 SkParsePath::ToSVGString(p, &str); in testparse()
35 SkParsePath::FromSVGString(str.c_str(), &p2); in testparse()
36 SkParsePath::ToSVGString(p2, &str2); in testparse()
H A DSampleStrokePath.cpp14 #include "include/utils/SkParsePath.h"
111 SkParsePath::FromSVGString(str, &fPath);
H A DSamplePath.cpp20 #include "include/utils/SkParsePath.h"
53 SkParsePath::FromSVGString(str, &path); in test_cubic2()
/third_party/skia/include/utils/
H A DSkParsePath.h17 class SK_API SkParsePath { class
/third_party/skia/modules/svg/src/
H A DSkSVGPath.cpp10 #include "include/utils/SkParsePath.h"
24 return SkParsePath::FromSVGString(fCurPos, path); in parse()
/third_party/skia/src/svg/
H A DSkSVGDevice.h13 #include "include/utils/SkParsePath.h"
50 SkParsePath::PathEncoding pathEncoding() const;
H A DSkSVGDevice.cpp300 void addPathAttributes(const SkPath&, SkParsePath::PathEncoding);
632 SkParsePath::PathEncoding encoding) {
634 SkParsePath::ToSVGString(path, &pathData, encoding);
718 SkParsePath::PathEncoding SkSVGDevice::pathEncoding() const {
720 ? SkParsePath::PathEncoding::Relative
721 : SkParsePath::PathEncoding::Absolute;
/third_party/skia/src/utils/
H A DSkParsePath.cpp8 #include "include/utils/SkParsePath.h"
91 bool SkParsePath::FromSVGString(const char data[], SkPath* result) { in FromSVGString()
239 void SkParsePath::ToSVGString(const SkPath& path, SkString* str, PathEncoding encoding) { in ToSVGString()
/third_party/skia/fuzz/
H A DFuzzParsePath.cpp10 #include "include/utils/SkParsePath.h"
124 SkDebugf("SkParsePath::FromSVGString(%s, &path);\n",spec.c_str()); in DEF_FUZZ()
125 if (!SkParsePath::FromSVGString(spec.c_str(), &path)){ in DEF_FUZZ()
/third_party/skia/modules/pathkit/
H A Dpathkit_wasm_bindings.cpp20 #include "include/utils/SkParsePath.h"
212 SkParsePath::ToSVGString(path, &s); in ToSVGString()
223 if (SkParsePath::FromSVGString(str.c_str(), &path)) { in FromSVGString()

Completed in 22 milliseconds

12