Home
last modified time | relevance | path

Searched refs:cAvg (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/src/gpu/geometry/
DGrPathUtils.cpp469 SkPoint cAvg = (c0 + c1) * 0.5f; in convert_noninflect_cubic_to_quads_with_constraint() local
472 if (!is_point_within_cubic_tangents(p[0], ab, dc, p[3], dir, cAvg)) { in convert_noninflect_cubic_to_quads_with_constraint()
478 cAvg.fX = ab.fY * z1 - z0 * dc.fY; in convert_noninflect_cubic_to_quads_with_constraint()
479 cAvg.fY = z0 * dc.fX - ab.fX * z1; in convert_noninflect_cubic_to_quads_with_constraint()
482 cAvg.fX *= z; in convert_noninflect_cubic_to_quads_with_constraint()
483 cAvg.fY *= z; in convert_noninflect_cubic_to_quads_with_constraint()
485 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
486 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
498 pts[1] = cAvg; in convert_noninflect_cubic_to_quads_with_constraint()
/third_party/skia/tools/fonts/
DTestSVGTypeface.cpp1091 SkPoint cAvg = c0; in convert_noninflect_cubic_to_quads() local
1092 cAvg += c1; in convert_noninflect_cubic_to_quads()
1093 cAvg.scale(SK_ScalarHalf); in convert_noninflect_cubic_to_quads()
1097 pts[1] = cAvg; in convert_noninflect_cubic_to_quads()