/* * Copyright (c) 2021, Ali Mohammad Pur * Copyright (c) 2022, Ben Maxwell * Copyright (c) 2022, Torsten Engelmann * * SPDX-License-Identifier: BSD-2-Clause */ #if defined(AK_COMPILER_GCC) # pragma GCC optimize("O3") #endif #include #include #include #include #include namespace Gfx { void AntiAliasingPainter::stroke_path(DeprecatedPath const& path, Color color, float thickness) { if (thickness <= 0) return; // FIXME: Cache this? Probably at a higher level such as in LibWeb? fill_path(path.stroke_to_fill(thickness), color); } void AntiAliasingPainter::stroke_path(DeprecatedPath const& path, Gfx::PaintStyle const& paint_style, float thickness, float opacity) { if (thickness <= 0) return; // FIXME: Cache this? Probably at a higher level such as in LibWeb? fill_path(path.stroke_to_fill(thickness), paint_style, opacity); } }