Searched refs:cAvg (Results 1 – 4 of 4) sorted by relevance
/third_party/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 469 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/flutter/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 550 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()
|
/third_party/flutter/skia/tools/fonts/ |
D | TestSVGTypeface.cpp | 1088 SkPoint cAvg = c0; in convert_noninflect_cubic_to_quads() local 1089 cAvg += c1; in convert_noninflect_cubic_to_quads() 1090 cAvg.scale(SK_ScalarHalf); in convert_noninflect_cubic_to_quads() 1094 pts[1] = cAvg; in convert_noninflect_cubic_to_quads()
|
/third_party/skia/tools/fonts/ |
D | TestSVGTypeface.cpp | 1091 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()
|