mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
[draw-session] Inline small functions
This commit is contained in:
1 parent
7aba1e6dd2
commit
d26b3adebe
1 file changed
+5
@@ -168,6 +168,7 @@ struct hb_draw_session_t
|
||||
|
||||
~hb_draw_session_t () { close_path (); }
|
||||
|
||||
__attribute__((__always_inline__))
|
||||
void move_to (float to_x, float to_y)
|
||||
{
|
||||
if (likely (not_slanted))
|
||||
@@ -177,6 +178,7 @@ struct hb_draw_session_t
|
||||
funcs->move_to (draw_data, st,
|
||||
to_x + to_y * slant, to_y);
|
||||
}
|
||||
__attribute__((__always_inline__))
|
||||
void line_to (float to_x, float to_y)
|
||||
{
|
||||
if (likely (not_slanted))
|
||||
@@ -187,6 +189,7 @@ struct hb_draw_session_t
|
||||
to_x + to_y * slant, to_y);
|
||||
}
|
||||
void
|
||||
__attribute__((__always_inline__))
|
||||
quadratic_to (float control_x, float control_y,
|
||||
float to_x, float to_y)
|
||||
{
|
||||
@@ -200,6 +203,7 @@ struct hb_draw_session_t
|
||||
to_x + to_y * slant, to_y);
|
||||
}
|
||||
void
|
||||
__attribute__((__always_inline__))
|
||||
cubic_to (float control1_x, float control1_y,
|
||||
float control2_x, float control2_y,
|
||||
float to_x, float to_y)
|
||||
@@ -215,6 +219,7 @@ struct hb_draw_session_t
|
||||
control2_x + control2_y * slant, control2_y,
|
||||
to_x + to_y * slant, to_y);
|
||||
}
|
||||
__attribute__((__always_inline__))
|
||||
void close_path ()
|
||||
{
|
||||
funcs->close_path (draw_data, st);
|
||||
|
||||
Reference in new issue
Block a user