/third_party/skia/tests/ |
H A D | PathOpsConicIntersectionTest.cpp | 47 static void chopCompare(const SkConic chopped[2], const SkDConic dChopped[2]) { in chopCompare() argument 48 SkASSERT(roughly_equal(chopped[0].fW, dChopped[0].fWeight)); in chopCompare() 49 SkASSERT(roughly_equal(chopped[1].fW, dChopped[1].fWeight)); in chopCompare() 53 up.set(chopped[cIndex].fPts[pIndex]); in chopCompare() 75 SkConic conic, chopped[2]; in writePng() local 80 chopped[chIndex].fPts[index].fX = ch[chIndex].fPts[index].fX * scale; in writePng() 81 chopped[chIndex].fPts[index].fY = ch[chIndex].fPts[index].fY * scale; in writePng() 85 chopped[0].fW = ch[0].fW; in writePng() 86 chopped[1].fW = ch[1].fW; in writePng() 105 path.moveTo(chopped[ in writePng() 145 SkDConic chopped = dConic.subDivide(tIndex / (double) chops, writeDPng() local 164 SkConic chopped[2]; chopBothWays() local [all...] |
H A D | PathOpsCubicIntersectionTest.cpp | 656 SkDCubic chopped[2]; in selfOneOff() 657 chopped[0].set(&twoCubics[0]); in selfOneOff() 658 chopped[1].set(&twoCubics[3]); in selfOneOff() 659 int result = i.intersect(chopped[0], chopped[1]); in selfOneOff() 663 SkDPoint pt1 = chopped[0].ptAtT(i[0][index]); in selfOneOff() 664 SkDPoint pt2 = chopped[1].ptAtT(i[1][index]); in selfOneOff()
|
H A D | GeometryTest.cpp | 463 SkPoint chopped[5]; in test_chop_quad_at_midtangent() local 464 SkChopQuadAtMidTangent(pts, chopped); in test_chop_quad_at_midtangent() 465 float leftRotation = SkMeasureQuadRotation(chopped); in test_chop_quad_at_midtangent() 466 float rightRotation = SkMeasureQuadRotation(chopped+2); in test_chop_quad_at_midtangent() 485 SkPoint chopped[7]; in test_chop_cubic_at_midtangent() local 486 SkChopCubicAtMidTangent(mapped, chopped); in test_chop_cubic_at_midtangent() 487 float leftRotation = SkMeasureNonInflectCubicRotation(chopped); in test_chop_cubic_at_midtangent() 488 float rightRotation = SkMeasureNonInflectCubicRotation(chopped+3); in test_chop_cubic_at_midtangent()
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | BoundedByteStringTest.java | 65 ByteString chopped = unicode.substring(2, unicode.size() - 6); in testToString() 69 getActualClassName(chopped)); in testToString() 71 String roundTripString = chopped.toString(UTF_8); in testToString() 82 ByteString chopped = unicode.substring(2, unicode.size() - 6); in testCharsetToString() 86 getActualClassName(chopped)); in testCharsetToString() 88 String roundTripString = chopped.toString(Internal.UTF_8); in testCharsetToString()
|
/third_party/skia/gm/ |
H A D | trickycubicstrokes.cpp | 87 SkPoint chopped[7]; in calc_tight_cubic_bounds() local 88 SkChopCubicAt(P, chopped, .5f); in calc_tight_cubic_bounds() 89 SkRect bounds = calc_tight_cubic_bounds(chopped, depth - 1); in calc_tight_cubic_bounds() 90 bounds.join(calc_tight_cubic_bounds(chopped+3, depth - 1)); in calc_tight_cubic_bounds()
|
H A D | beziereffects.cpp | 485 SkPoint chopped[5]; variable 486 int cnt = SkChopQuadAtMaxCurvature(controlPts, chopped); 489 SkPoint* pts = chopped + 2 * c;
|
/third_party/skia/src/pathops/ |
H A D | SkPathOpsConic.cpp | 171 SkDConic chopped = this->subDivide(t1, t2); in subDivide() local 172 *weight = chopped.fWeight; in subDivide() 173 return chopped[1]; in subDivide()
|
/third_party/skia/src/gpu/geometry/ |
H A D | GrPathUtils.cpp | 521 SkPoint chopped[10]; in convertCubicToQuads() local 522 int count = SkChopCubicAtInflections(p, chopped); in convertCubicToQuads() 527 SkPoint* cubic = chopped + 3*i; in convertCubicToQuads() 542 SkPoint chopped[10]; in convertCubicToQuadsConstrainToTangents() local 543 int count = SkChopCubicAtInflections(p, chopped); in convertCubicToQuadsConstrainToTangents() 548 SkPoint* cubic = chopped + 3*i; in convertCubicToQuadsConstrainToTangents()
|
/third_party/skia/src/core/ |
H A D | SkStroke.cpp | 846 SkPoint chopped[7]; 857 SkChopCubicAt(cubic, chopped, t); 858 dxy = chopped[3] - chopped[2]; 860 dxy = chopped[3] - chopped[1]; 861 cPts = chopped;
|
H A D | SkPath.cpp | 2794 SkConic chopped[2]; in winding_conic() local 2797 bool isMono = is_mono_quad(pts[0].fY, pts[1].fY, pts[2].fY) || !conic.chopAtYExtrema(chopped); in winding_conic() 2798 int w = winding_mono_conic(isMono ? conic : chopped[0], x, y, onCurveCount); in winding_conic() 2800 w += winding_mono_conic(chopped[1], x, y, onCurveCount); in winding_conic()
|
/third_party/skia/tools/fonts/ |
H A D | TestSVGTypeface.cpp | 1111 SkPoint chopped[10]; in convertCubicToQuads() local 1112 int count = SkChopCubicAtInflections(p, chopped); in convertCubicToQuads() 1117 SkPoint* cubic = chopped + 3 * i; in convertCubicToQuads()
|