mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Painter: Tell the compiler to flatten Font::draw_glyph().
I think that concludes the Terminal stress test optimizations for now.
This commit is contained in:
parent
c7b005c47b
commit
c7221b7dee
Notes:
sideshowbarker
2024-07-19 15:56:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c7221b7dee8
2 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#define PACKED __attribute__ ((packed))
|
||||
#define NORETURN __attribute__ ((noreturn))
|
||||
#define FLATTEN __attribute__ ((flatten))
|
||||
#undef ALWAYS_INLINE
|
||||
#define ALWAYS_INLINE inline __attribute__ ((always_inline))
|
||||
#define NEVER_INLINE __attribute__ ((noinline))
|
||||
|
|
|
@ -182,7 +182,7 @@ void Painter::draw_bitmap(const Point& p, const CharacterBitmap& bitmap, Color c
|
|||
}
|
||||
}
|
||||
|
||||
void Painter::draw_glyph(const Point& point, char ch, Color color)
|
||||
FLATTEN void Painter::draw_glyph(const Point& point, char ch, Color color)
|
||||
{
|
||||
draw_bitmap(point, font().glyph_bitmap(ch), color);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue