mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[glyf] always_inline consume_point
7% speedup in: BM_Font/draw_glyph/Roboto-Regular.ttf/hb
This commit is contained in:
parent
8795ccedd6
commit
83d75d5e9b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue