/external/skqp/tests/ |
D | PathOpsSimplifyQuadralateralsThreadedTest.cpp | 17 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 …]
|
D | PathOpsOpLoopThreadedTest.cpp | 40 SkString pathStr; in testOpLoopsMain() local 64 pathStr.printf("static void loop%d(skiatest::Reporter* reporter," in testOpLoopsMain() 66 pathStr.appendf(" SkPath path, pathB;\n"); in testOpLoopsMain() 67 pathStr.appendf(" path.moveTo(%d,%d);\n", a, b); in testOpLoopsMain() 68 pathStr.appendf(" path.cubicTo(%d,%d, ", c, d); in testOpLoopsMain() 69 add_point(&pathStr, endC.fX, endC.fY); in testOpLoopsMain() 70 pathStr.appendf(", "); in testOpLoopsMain() 71 add_point(&pathStr, endD.fX, endD.fY); in testOpLoopsMain() 72 pathStr.appendf(");\n"); in testOpLoopsMain() 73 pathStr.appendf(" path.close();\n"); in testOpLoopsMain() [all …]
|
D | PathOpsSimplifyQuadThreadedTest.cpp | 17 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 …]
|
D | PathOpsOpRectThreadedTest.cpp | 27 SkString pathStr; in testPathOpsRectsMain() local 49 pathStr.printf( in testPathOpsRectsMain() 52 pathStr.appendf(" SkPath path, pathB;"); in testPathOpsRectsMain() 53 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testPathOpsRectsMain() 56 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 58 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 60 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testPathOpsRectsMain() 63 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 65 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 67 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testPathOpsRectsMain() [all …]
|
D | PathOpsOpCubicThreadedTest.cpp | 23 SkString pathStr; in testOpCubicsMain() local 43 pathStr.printf("static void cubicOp%d(skiatest::Reporter* reporter," in testOpCubicsMain() 45 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCubicsMain() 46 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testOpCubicsMain() 49 pathStr.appendf(" path.moveTo(%d,%d);\n", state.fA, state.fB); in testOpCubicsMain() 50 pathStr.appendf(" path.cubicTo(%d,%d, %d,%d, %d,%d);\n", state.fC, state.fD, in testOpCubicsMain() 52 pathStr.appendf(" path.close();\n"); in testOpCubicsMain() 53 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testOpCubicsMain() 56 pathStr.appendf(" pathB.moveTo(%d,%d);\n", a, b); in testOpCubicsMain() 57 pathStr.appendf(" pathB.cubicTo(%d,%d, %d,%d, %d,%d);\n", c, d, in testOpCubicsMain() [all …]
|
D | PathOpsSimplifyDegenerateThreadedTest.cpp | 33 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 …]
|
D | PathOpsSimplifyTrianglesThreadedTest.cpp | 36 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 …]
|
D | PathOpsOpCircleThreadedTest.cpp | 20 SkString pathStr; in testOpCirclesMain() local 36 pathStr.printf("static void circlesOp%d(skiatest::Reporter* reporter," in testOpCirclesMain() 38 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCirclesMain() 39 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testOpCirclesMain() 42 pathStr.appendf(" path.addCircle(%d, %d, %d, %s);\n", state.fA, state.fB, in testOpCirclesMain() 44 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testOpCirclesMain() 47 pathStr.appendf(" pathB.addCircle(%d, %d, %d, %s);\n", a, b, in testOpCirclesMain() 49 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testOpCirclesMain() 51 pathStr.appendf("}\n"); in testOpCirclesMain() 52 state.outputProgress(pathStr.c_str(), (SkPathOp) op); in testOpCirclesMain()
|
D | PathOpsSimplifyRectThreadedTest.cpp | 40 SkString pathStr; in testSimplify4x4RectsMain() local 69 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 100 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 131 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 162 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 171 state.outputProgress(pathStr.c_str(), SkPath::kWinding_FillType); in testSimplify4x4RectsMain() 173 testSimplify(path, false, out, state, pathStr.c_str()); in testSimplify4x4RectsMain() 175 state.outputProgress(pathStr.c_str(), SkPath::kEvenOdd_FillType); in testSimplify4x4RectsMain() 177 testSimplify(path, true, out, state, pathStr.c_str()); in testSimplify4x4RectsMain()
|
D | PathOpsQuadLineIntersectionThreadedTest.cpp | 49 SkString pathStr; in testLineIntersect() local 50 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", quad[0].fX, quad[0].fY); in testLineIntersect() 51 pathStr.appendf(" path.quadTo(%1.9g, %1.9g, %1.9g, %1.9g);\n", quad[1].fX, in testLineIntersect() 53 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", line[0].fX, line[0].fY); in testLineIntersect() 54 pathStr.appendf(" path.lineTo(%1.9g, %1.9g);\n", line[1].fX, line[1].fY); in testLineIntersect()
|
D | PathOpsThreadedCommon.h | 37 void outputProgress(const char* pathStr, SkPath::FillType); 38 void outputProgress(const char* pathStr, SkPathOp);
|
/external/skia/tests/ |
D | PathOpsSimplifyQuadralateralsThreadedTest.cpp | 17 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 …]
|
D | PathOpsOpLoopThreadedTest.cpp | 40 SkString pathStr; in testOpLoopsMain() local 64 pathStr.printf("static void loop%d(skiatest::Reporter* reporter," in testOpLoopsMain() 66 pathStr.appendf(" SkPath path, pathB;\n"); in testOpLoopsMain() 67 pathStr.appendf(" path.moveTo(%d,%d);\n", a, b); in testOpLoopsMain() 68 pathStr.appendf(" path.cubicTo(%d,%d, ", c, d); in testOpLoopsMain() 69 add_point(&pathStr, endC.fX, endC.fY); in testOpLoopsMain() 70 pathStr.appendf(", "); in testOpLoopsMain() 71 add_point(&pathStr, endD.fX, endD.fY); in testOpLoopsMain() 72 pathStr.appendf(");\n"); in testOpLoopsMain() 73 pathStr.appendf(" path.close();\n"); in testOpLoopsMain() [all …]
|
D | PathOpsSimplifyQuadThreadedTest.cpp | 17 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 …]
|
D | PathOpsOpRectThreadedTest.cpp | 27 SkString pathStr; in testPathOpsRectsMain() local 49 pathStr.printf( in testPathOpsRectsMain() 52 pathStr.appendf(" SkPath path, pathB;"); in testPathOpsRectsMain() 53 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testPathOpsRectsMain() 56 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 58 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 60 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testPathOpsRectsMain() 63 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 65 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain() 67 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testPathOpsRectsMain() [all …]
|
D | PathOpsOpCubicThreadedTest.cpp | 23 SkString pathStr; in testOpCubicsMain() local 43 pathStr.printf("static void cubicOp%d(skiatest::Reporter* reporter," in testOpCubicsMain() 45 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCubicsMain() 46 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testOpCubicsMain() 49 pathStr.appendf(" path.moveTo(%d,%d);\n", state.fA, state.fB); in testOpCubicsMain() 50 pathStr.appendf(" path.cubicTo(%d,%d, %d,%d, %d,%d);\n", state.fC, state.fD, in testOpCubicsMain() 52 pathStr.appendf(" path.close();\n"); in testOpCubicsMain() 53 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testOpCubicsMain() 56 pathStr.appendf(" pathB.moveTo(%d,%d);\n", a, b); in testOpCubicsMain() 57 pathStr.appendf(" pathB.cubicTo(%d,%d, %d,%d, %d,%d);\n", c, d, in testOpCubicsMain() [all …]
|
D | PathOpsSimplifyDegenerateThreadedTest.cpp | 33 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 …]
|
D | PathOpsSimplifyTrianglesThreadedTest.cpp | 36 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 …]
|
D | PathOpsOpCircleThreadedTest.cpp | 20 SkString pathStr; in testOpCirclesMain() local 36 pathStr.printf("static void circlesOp%d(skiatest::Reporter* reporter," in testOpCirclesMain() 38 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCirclesMain() 39 pathStr.appendf(" path.setFillType(SkPath::k%s_FillType);\n", in testOpCirclesMain() 42 pathStr.appendf(" path.addCircle(%d, %d, %d, %s);\n", state.fA, state.fB, in testOpCirclesMain() 44 pathStr.appendf(" pathB.setFillType(SkPath::k%s_FillType);\n", in testOpCirclesMain() 47 pathStr.appendf(" pathB.addCircle(%d, %d, %d, %s);\n", a, b, in testOpCirclesMain() 49 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testOpCirclesMain() 51 pathStr.appendf("}\n"); in testOpCirclesMain() 52 state.outputProgress(pathStr.c_str(), (SkPathOp) op); in testOpCirclesMain()
|
D | PathOpsSimplifyRectThreadedTest.cpp | 40 SkString pathStr; in testSimplify4x4RectsMain() local 69 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 100 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 131 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 162 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain() 171 state.outputProgress(pathStr.c_str(), SkPath::kWinding_FillType); in testSimplify4x4RectsMain() 173 testSimplify(path, false, out, state, pathStr.c_str()); in testSimplify4x4RectsMain() 175 state.outputProgress(pathStr.c_str(), SkPath::kEvenOdd_FillType); in testSimplify4x4RectsMain() 177 testSimplify(path, true, out, state, pathStr.c_str()); in testSimplify4x4RectsMain()
|
D | PathOpsQuadLineIntersectionThreadedTest.cpp | 49 SkString pathStr; in testLineIntersect() local 50 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", quad[0].fX, quad[0].fY); in testLineIntersect() 51 pathStr.appendf(" path.quadTo(%1.9g, %1.9g, %1.9g, %1.9g);\n", quad[1].fX, in testLineIntersect() 53 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", line[0].fX, line[0].fY); in testLineIntersect() 54 pathStr.appendf(" path.lineTo(%1.9g, %1.9g);\n", line[1].fX, line[1].fY); in testLineIntersect()
|
D | PathOpsThreadedCommon.h | 37 void outputProgress(const char* pathStr, SkPath::FillType); 38 void outputProgress(const char* pathStr, SkPathOp);
|
/external/skia/gm/ |
D | path_stroke_with_zero_length.cpp | 143 SkString pathStr; in draw_zero_length_capped_paths() local 144 pathStr.appendf("M %f %f ", (kCellWidth - 1) * 0.5f, (kCellHeight - 1) * 0.5f); in draw_zero_length_capped_paths() 146 pathStr.append(verb); in draw_zero_length_capped_paths() 150 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths() 206 SkString pathStr; in draw_zero_length_capped_paths_dbl_contour() local 207 pathStr.append("M 9.5 9.5 "); in draw_zero_length_capped_paths_dbl_contour() 209 pathStr.append(firstVerb); in draw_zero_length_capped_paths_dbl_contour() 212 pathStr.append("M 40.5 9.5 "); in draw_zero_length_capped_paths_dbl_contour() 214 pathStr.append(secondVerb); in draw_zero_length_capped_paths_dbl_contour() 219 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths_dbl_contour()
|
/external/skqp/gm/ |
D | path_stroke_with_zero_length.cpp | 143 SkString pathStr; in draw_zero_length_capped_paths() local 144 pathStr.appendf("M %f %f ", (kCellWidth - 1) * 0.5f, (kCellHeight - 1) * 0.5f); in draw_zero_length_capped_paths() 146 pathStr.append(verb); in draw_zero_length_capped_paths() 150 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths() 206 SkString pathStr; in draw_zero_length_capped_paths_dbl_contour() local 207 pathStr.append("M 9.5 9.5 "); in draw_zero_length_capped_paths_dbl_contour() 209 pathStr.append(firstVerb); in draw_zero_length_capped_paths_dbl_contour() 212 pathStr.append("M 40.5 9.5 "); in draw_zero_length_capped_paths_dbl_contour() 214 pathStr.append(secondVerb); in draw_zero_length_capped_paths_dbl_contour() 219 SkParsePath::FromSVGString(pathStr.c_str(), &path); in draw_zero_length_capped_paths_dbl_contour()
|
/external/deqp/executor/ |
D | xeTestCase.cpp | 69 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()
|