/external/skia/tests/ |
PathOpsConicLineIntersectionTest.cpp | 31 static int doIntersect(SkIntersections& intersections, const SkDConic& conic, const SkDLine& line, 42 result = intersections.vertical(conic, top, bottom, line[0].fX, flipped); 50 result = intersections.horizontal(conic, left, right, line[0].fY, flipped); 52 intersections.intersect(conic, line); 53 result = intersections.used(); 75 SkIntersections intersections; local 76 int result = doIntersect(intersections, conic, line, flipped); 78 double conicT = intersections[0][inner]; 80 double lineT = intersections[1][inner]; 116 SkIntersections intersections; local [all...] |
PathOpsQuadLineIntersectionTest.cpp | 31 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, 42 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped); 50 result = intersections.horizontal(quad, left, right, line[0].fY, flipped); 52 intersections.intersect(quad, line); 53 result = intersections.used(); 86 SkIntersections intersections; local 87 int result = doIntersect(intersections, quad, line, flipped); 89 double quadT = intersections[0][inner]; 91 double lineT = intersections[1][inner]; 124 SkIntersections intersections; local [all...] |
PathOpsQuadLineIntersectionThreadedTest.cpp | 14 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, 25 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped); 33 result = intersections.horizontal(quad, left, right, line[0].fY, flipped); 35 intersections.intersect(quad, line); 36 result = intersections.used(); 52 SkIntersections intersections; local 54 int result = doIntersect(intersections, quad, line, flipped); 57 double quadT = intersections[0][index]; 59 double lineT = intersections[1][index];
|
PathOpsConicIntersectionTest.cpp | 309 SkIntersections intersections; local 310 intersections.intersect(c1, c2); 311 if (coin && intersections.used() != 2) { 314 REPORTER_ASSERT(reporter, !coin || intersections.used() == 2); 317 for (int pt3 = 0; pt3 < intersections.used(); ++pt3) { 318 tt1 = intersections[0][pt3]; 320 tt2 = intersections[1][pt3]; 322 const SkDPoint& iPt = intersections.pt(pt3);
|
PathOpsQuadIntersectionTest.cpp | 35 SkIntersections intersections; local 36 intersections.intersect(quad1, quad2); 37 if (intersections.used() > 0) { 38 for (int pt = 0; pt < intersections.used(); ++pt) { 39 double tt1 = intersections[0][pt]; 41 double tt2 = intersections[1][pt]; 330 SkIntersections intersections; local 331 intersections.intersect(quad1, quad2); 332 for (int pt = 0; pt < intersections.used(); ++pt) { 333 double tt1 = intersections[0][pt] 516 SkIntersections intersections; local [all...] |
PathOpsCubicIntersectionTest.cpp | 394 SkIntersections intersections; local 395 intersections.intersect(cubic1, cubic2); 404 if (coin && intersections.used() != 2) { 407 REPORTER_ASSERT(reporter, !coin || intersections.used() == 2); 410 for (int pt3 = 0; pt3 < intersections.used(); ++pt3) { 411 tt1 = intersections[0][pt3]; 413 tt2 = intersections[1][pt3]; 415 const SkDPoint& iPt = intersections.pt(pt3);
|
/external/skia/gm/ |
texteffects.cpp | 232 static SkPath create_underline(const SkTDArray<SkScalar>& intersections, 237 for (int index = 0; index < intersections.count(); index += 2) { 238 SkScalar start = intersections[index] - uWidth;; 239 end = intersections[index + 1] + uWidth; 254 const SkPaint& paint, SkScalar uWidth, SkTDArray<SkScalar>* intersections) { 260 intersections->setCount(count); 261 paint.getTextIntercepts(test, len, x, y, bounds, intersections->begin()); 280 SkTDArray<SkScalar> intersections; local 282 &intersections); 287 SkPath underline = create_underline(intersections, start, end, uPos, uWidth, textSize) 336 SkTDArray<SkScalar> intersections; local 379 SkTDArray<SkScalar> intersections; local [all...] |