[glyf] always_inline consume_point

7% speedup in:
BM_Font/draw_glyph/Roboto-Regular.ttf/hb
This commit is contained in:
Behdad Esfahbod 2023-06-28 13:35:24 -06:00
parent 8795ccedd6
commit 83d75d5e9b

View file

@ -37,6 +37,7 @@ struct path_builder_t
* https://stackoverflow.com/a/20772557
*
* Cubic support added. */
__attribute__((always_inline))
void consume_point (const contour_point_t &point)
{
bool is_on_curve = point.flag & glyf_impl::SimpleGlyph::FLAG_ON_CURVE;