LibGfx: Flatten AntiAliasingPainter::draw_ellipse_part()

This seemed to drop the time spent here a few percent in profiling.
This commit is contained in:
MacDue 2022-06-20 12:20:50 +01:00 committed by Linus Groh
parent ff1e61bd11
commit bb48a61d50
Notes: sideshowbarker 2024-07-17 10:01:10 +09:00

View File

@ -289,7 +289,7 @@ void AntiAliasingPainter::fill_ellipse(IntRect const& a_rect, Color color, Blend
draw_ellipse_part(center, radius_b, radius_a, color, true, x_paint_range, blend_mode);
}
AntiAliasingPainter::Range AntiAliasingPainter::draw_ellipse_part(
FLATTEN AntiAliasingPainter::Range AntiAliasingPainter::draw_ellipse_part(
IntPoint center, int radius_a, int radius_b, Color color, bool flip_x_and_y, Optional<Range> x_clip, BlendMode blend_mode)
{
/*