mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[glyf] always_inline consume_point
7% speedup in: BM_Font/draw_glyph/Roboto-Regular.ttf/hb
This commit is contained in:
1 parent
8795ccedd6
commit
83d75d5e9b
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user