mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[glyf] Micro-optimize
This commit is contained in:
parent
83d75d5e9b
commit
c31471d10e
1 changed files with 2 additions and 1 deletions
|
@ -225,7 +225,7 @@ struct glyf_accelerator_t
|
|||
assert (count >= glyf_impl::PHANTOM_COUNT);
|
||||
count -= glyf_impl::PHANTOM_COUNT;
|
||||
for (unsigned point_index = 0; point_index < count; point_index++)
|
||||
consumer.consume_point (all_points[point_index]);
|
||||
consumer.consume_point (all_points.arrayZ[point_index]);
|
||||
consumer.points_end ();
|
||||
}
|
||||
|
||||
|
@ -296,6 +296,7 @@ struct glyf_accelerator_t
|
|||
if (extents) bounds = contour_bounds_t ();
|
||||
}
|
||||
|
||||
__attribute__((always_inline))
|
||||
void consume_point (const contour_point_t &point) { bounds.add (point); }
|
||||
void points_end () { bounds.get_extents (font, extents, scaled); }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue