ColdPaleLight 4f49c89943 [Impeller] Improved numerical stability in cubic path boundary calculations (flutter/engine#42720)
fix https://github.com/flutter/flutter/issues/128532

In this commit, we refined the method for calculating cubic path boundaries in CubicPathBoundingPopulateValues function. By adopting an alternative quadratic formula from Numerical Recipes in C (The code is ported from skia's `SkFindUnitQuadRoots`),  we mitigated numerical errors, hence boosting precision and reliability in handling cubic paths.
2023-06-11 04:02:05 +00:00
..