[graphite] Sparse strips: Share flattening helpers in FlattenUtils.h
Moves the curve helpers that the sparse strips stroker will share with
Flatten into a header: Levien's parabola integral approximations (scalar
and SIMD), the cubic -> quads estimate, conic -> cubics splitting, and
the culling tests. Error tolerances become parameters, scalar precision
is a template parameter, and the clip type is generic, so that the
stroker can use its own error budget and float math.
Bug: b/585864718
Change-Id: Ia9c5b4682d5ca7a94f7554aa2e8f83b0be420a3e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1422081
Commit-Queue: Thomas Smith <thomsmit@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Auto-Submit: Thomas Smith <thomsmit@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
4 files changed