Home
last modified time | relevance | path

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

/external/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()
/external/skqp/src/gpu/
DGrPathUtils.cpp550 SkPoint cAvg = (c0 + c1) * 0.5f; in convert_noninflect_cubic_to_quads_with_constraint() local
553 if (!is_point_within_cubic_tangents(p[0], ab, dc, p[3], dir, cAvg)) { in convert_noninflect_cubic_to_quads_with_constraint()
559 cAvg.fX = ab.fY * z1 - z0 * dc.fY; in convert_noninflect_cubic_to_quads_with_constraint()
560 cAvg.fY = z0 * dc.fX - ab.fX * z1; in convert_noninflect_cubic_to_quads_with_constraint()
563 cAvg.fX *= z; in convert_noninflect_cubic_to_quads_with_constraint()
564 cAvg.fY *= z; in convert_noninflect_cubic_to_quads_with_constraint()
566 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
567 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
579 pts[1] = cAvg; in convert_noninflect_cubic_to_quads_with_constraint()
/external/skqp/tools/fonts/
DSkTestSVGTypeface.cpp949 SkPoint cAvg = c0; in convert_noninflect_cubic_to_quads() local
950 cAvg += c1; in convert_noninflect_cubic_to_quads()
951 cAvg.scale(SK_ScalarHalf); in convert_noninflect_cubic_to_quads()
955 pts[1] = cAvg; in convert_noninflect_cubic_to_quads()
/external/skia/tools/fonts/
DTestSVGTypeface.cpp1090 SkPoint cAvg = c0; in convert_noninflect_cubic_to_quads() local
1091 cAvg += c1; in convert_noninflect_cubic_to_quads()
1092 cAvg.scale(SK_ScalarHalf); in convert_noninflect_cubic_to_quads()
1096 pts[1] = cAvg; in convert_noninflect_cubic_to_quads()