1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:57:35 +00:00

LibGfx: Sprinkle some FLATTEN/hot attributes in the path rasterizer

This seems to actually improve performance to the tune of about +5 fps.
This commit is contained in:
MacDue 2024-01-06 13:52:34 +00:00 committed by Andreas Kling
parent e2152a5b3d
commit ec93973158
2 changed files with 4 additions and 4 deletions

View file

@ -176,7 +176,7 @@ private:
Detail::Edge* plot_edges_for_scanline(int scanline, auto plot_edge, EdgeExtent&, Detail::Edge* active_edges = nullptr);
template<Painter::WindingRule>
void write_scanline(Painter&, int scanline, EdgeExtent, auto& color_or_function);
FLATTEN void write_scanline(Painter&, int scanline, EdgeExtent, auto& color_or_function);
Color scanline_color(int scanline, int offset, u8 alpha, auto& color_or_function);
void write_pixel(BitmapFormat format, ARGB32* scanline_ptr, int scanline, int offset, SampleType sample, auto& color_or_function);
void fast_fill_solid_color_span(ARGB32* scanline_ptr, int start, int end, Color color);