Home
last modified time | relevance | path

Searched refs:pathStr (Results 1 – 15 of 15) sorted by relevance

/external/skia/tests/
DPathOpsSimplifyQuadralateralsThreadedTest.cpp17 SkString pathStr; in testSimplifyQuadralateralsMain() local
51 pathStr.printf("static void quadralateralSimplify%d(skiatest::Reporter*" in testSimplifyQuadralateralsMain()
53 pathStr.appendf(" SkPath path;\n"); in testSimplifyQuadralateralsMain()
54 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyQuadralateralsMain()
55 pathStr.appendf(" path.lineTo(%d, %d);\n", bx, by); in testSimplifyQuadralateralsMain()
56 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyQuadralateralsMain()
57 pathStr.appendf(" path.lineTo(%d, %d);\n", dx, dy); in testSimplifyQuadralateralsMain()
58 pathStr.appendf(" path.close();\n"); in testSimplifyQuadralateralsMain()
59 pathStr.appendf(" path.moveTo(%d, %d);\n", ex, ey); in testSimplifyQuadralateralsMain()
60 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyQuadralateralsMain()
[all …]
DPathOpsOpLoopThreadedTest.cpp35 SkString pathStr; in testOpLoopsMain() local
59 pathStr.printf("static void loop%d(skiatest::Reporter* reporter," in testOpLoopsMain()
61 pathStr.appendf(" SkPath path, pathB;\n"); in testOpLoopsMain()
62 pathStr.appendf(" path.moveTo(%d,%d);\n", a, b); in testOpLoopsMain()
63 pathStr.appendf(" path.cubicTo(%d,%d, ", c, d); in testOpLoopsMain()
64 add_point(&pathStr, endC.fX, endC.fY); in testOpLoopsMain()
65 pathStr.appendf(", "); in testOpLoopsMain()
66 add_point(&pathStr, endD.fX, endD.fY); in testOpLoopsMain()
67 pathStr.appendf(");\n"); in testOpLoopsMain()
68 pathStr.appendf(" path.close();\n"); in testOpLoopsMain()
[all …]
DPathOpsSimplifyQuadThreadedTest.cpp17 SkString pathStr; in testSimplifyQuadsMain() local
51 pathStr.printf("static void testQuads%d(skiatest::Reporter* reporter," in testSimplifyQuadsMain()
53 pathStr.appendf(" SkPath path;\n"); in testSimplifyQuadsMain()
54 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyQuadsMain()
55 pathStr.appendf(" path.quadTo(%d, %d, %d, %d);\n", bx, by, cx, cy); in testSimplifyQuadsMain()
56 pathStr.appendf(" path.lineTo(%d, %d);\n", dx, dy); in testSimplifyQuadsMain()
57 pathStr.appendf(" path.close();\n"); in testSimplifyQuadsMain()
58 pathStr.appendf(" path.moveTo(%d, %d);\n", ex, ey); in testSimplifyQuadsMain()
59 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyQuadsMain()
60 pathStr.appendf(" path.quadTo(%d, %d, %d, %d);\n", gx, gy, hx, hy); in testSimplifyQuadsMain()
[all …]
DPathOpsOpCubicThreadedTest.cpp19 SkString pathStr; in testOpCubicsMain() local
39 pathStr.printf("static void cubicOp%d(skiatest::Reporter* reporter," in testOpCubicsMain()
41 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCubicsMain()
42 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testOpCubicsMain()
45 pathStr.appendf(" path.moveTo(%d,%d);\n", state.fA, state.fB); in testOpCubicsMain()
46 pathStr.appendf(" path.cubicTo(%d,%d, %d,%d, %d,%d);\n", state.fC, state.fD, in testOpCubicsMain()
48 pathStr.appendf(" path.close();\n"); in testOpCubicsMain()
49 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testOpCubicsMain()
52 pathStr.appendf(" pathB.moveTo(%d,%d);\n", a, b); in testOpCubicsMain()
53 pathStr.appendf(" pathB.cubicTo(%d,%d, %d,%d, %d,%d);\n", c, d, in testOpCubicsMain()
[all …]
DPathOpsSimplifyDegenerateThreadedTest.cpp33 SkString pathStr; in testSimplifyDegeneratesMain() local
45 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyDegeneratesMain()
46 pathStr.appendf(" path.lineTo(%d, %d);\n", bx, by); in testSimplifyDegeneratesMain()
47 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyDegeneratesMain()
48 pathStr.appendf(" path.close();\n"); in testSimplifyDegeneratesMain()
49 pathStr.appendf(" path.moveTo(%d, %d);\n", dx, dy); in testSimplifyDegeneratesMain()
50 pathStr.appendf(" path.lineTo(%d, %d);\n", ex, ey); in testSimplifyDegeneratesMain()
51 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyDegeneratesMain()
52 pathStr.appendf(" path.close();\n"); in testSimplifyDegeneratesMain()
53 state.outputProgress(pathStr.c_str(), SkPath::kWinding_FillType); in testSimplifyDegeneratesMain()
[all …]
DPathOpsSimplifyTrianglesThreadedTest.cpp36 SkString pathStr; in testSimplifyTrianglesMain() local
48 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyTrianglesMain()
49 pathStr.appendf(" path.lineTo(%d, %d);\n", bx, by); in testSimplifyTrianglesMain()
50 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyTrianglesMain()
51 pathStr.appendf(" path.close();\n"); in testSimplifyTrianglesMain()
52 pathStr.appendf(" path.moveTo(%d, %d);\n", dx, dy); in testSimplifyTrianglesMain()
53 pathStr.appendf(" path.lineTo(%d, %d);\n", ex, ey); in testSimplifyTrianglesMain()
54 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyTrianglesMain()
55 pathStr.appendf(" path.close();\n"); in testSimplifyTrianglesMain()
56 state.outputProgress(pathStr.c_str(), SkPath::kWinding_FillType); in testSimplifyTrianglesMain()
[all …]
DPathOpsOpRectThreadedTest.cpp24 SkString pathStr; in testPathOpsRectsMain() local
46 pathStr.printf( in testPathOpsRectsMain()
49 pathStr.appendf(" SkPath path, pathB;"); in testPathOpsRectsMain()
50 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testPathOpsRectsMain()
53 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
55 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
57 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testPathOpsRectsMain()
60 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
62 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
64 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testPathOpsRectsMain()
[all …]
DPathOpsOpCircleThreadedTest.cpp16 SkString pathStr; in testOpCirclesMain() local
32 pathStr.printf("static void circlesOp%d(skiatest::Reporter* reporter," in testOpCirclesMain()
34 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCirclesMain()
35 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testOpCirclesMain()
38 pathStr.appendf(" path.addCircle(%d, %d, %d, %s);\n", state.fA, state.fB, in testOpCirclesMain()
40 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testOpCirclesMain()
43 pathStr.appendf(" pathB.addCircle(%d, %d, %d, %s);\n", a, b, in testOpCirclesMain()
45 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testOpCirclesMain()
47 pathStr.appendf("}\n"); in testOpCirclesMain()
48 state.outputProgress(pathStr.c_str(), (SkPathOp) op); in testOpCirclesMain()
DPathOpsSimplifyRectThreadedTest.cpp38 SkString pathStr; in testSimplify4x4RectsMain() local
67 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
98 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
129 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
160 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
169 state.outputProgress(pathStr.c_str(), SkPath::kWinding_FillType); in testSimplify4x4RectsMain()
171 testSimplify(path, false, out, state, pathStr.c_str()); in testSimplify4x4RectsMain()
173 state.outputProgress(pathStr.c_str(), SkPath::kEvenOdd_FillType); in testSimplify4x4RectsMain()
175 testSimplify(path, true, out, state, pathStr.c_str()); in testSimplify4x4RectsMain()
DPathOpsQuadLineIntersectionThreadedTest.cpp45 SkString pathStr; in testLineIntersect() local
46 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", quad[0].fX, quad[0].fY); in testLineIntersect()
47 pathStr.appendf(" path.quadTo(%1.9g, %1.9g, %1.9g, %1.9g);\n", quad[1].fX, in testLineIntersect()
49 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", line[0].fX, line[0].fY); in testLineIntersect()
50 pathStr.appendf(" path.lineTo(%1.9g, %1.9g);\n", line[1].fX, line[1].fY); in testLineIntersect()
DPathOpsExtendedTest.cpp394 static void appendTest(const char* pathStr, const char* pathPrefix, const char* nameSuffix, in appendTest() argument
403 out.append(pathStr); in appendTest()
421 out += pathStr; in appendTest()
442 const char* pathStr) { in testSimplify() argument
465 appendTest(pathStr, pathPrefix, nameSuffix, testFunction, false, str); in testSimplify()
644 void PathOpsThreadState::outputProgress(const char* pathStr, SkPath::FillType pathFillType) { in outputProgress() argument
652 appendTest(pathStr, pathPrefix, nameSuffix, testFunction, false, fPathStr); in outputProgress()
655 void PathOpsThreadState::outputProgress(const char* pathStr, SkPathOp op) { in outputProgress() argument
659 appendTest(pathStr, nullptr, nameSuffix, testFunction, true, fPathStr); in outputProgress()
DPathOpsThreadedCommon.h37 void outputProgress(const char* pathStr, SkPath::FillType);
38 void outputProgress(const char* pathStr, SkPathOp);
DPathOpsExtendedTest.h44 const char* pathStr);
/external/skia/gm/
Dpath_stroke_with_zero_length.cpp141 SkString pathStr; in draw_zero_length_capped_paths() local
142 pathStr.appendf("M %f %f ", (kCellWidth - 1) * 0.5f, (kCellHeight - 1) * 0.5f); in draw_zero_length_capped_paths()
144 pathStr.append(verb); in draw_zero_length_capped_paths()
148 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths()
204 SkString pathStr; in draw_zero_length_capped_paths_dbl_contour() local
205 pathStr.append("M 9.5 9.5 "); in draw_zero_length_capped_paths_dbl_contour()
207 pathStr.append(firstVerb); in draw_zero_length_capped_paths_dbl_contour()
210 pathStr.append("M 40.5 9.5 "); in draw_zero_length_capped_paths_dbl_contour()
212 pathStr.append(secondVerb); in draw_zero_length_capped_paths_dbl_contour()
217 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths_dbl_contour()
/external/deqp/executor/
DxeTestCase.cpp69 std::string pathStr (path); in splitPath() local
72 for (int pos = 0; pos < (int)pathStr.length(); pos++) in splitPath()
74 if (pathStr[pos] == '.') in splitPath()
76 components.push_back(pathStr.substr(compStart, pos-compStart)); in splitPath()
81 DE_ASSERT(compStart < (int)pathStr.length()); in splitPath()
82 components.push_back(pathStr.substr(compStart)); in splitPath()