From c6e79124c7f479da5bb2b97cc59868763d013d51 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 10 Apr 2022 18:43:39 +0200 Subject: [PATCH] LibGfx: Slap an -O3 optimization #pragma on Gfx::AntiAliasingPainter We're already doing this for Gfx::Painter, so let's do it here as well. --- Userland/Libraries/LibGfx/AntiAliasingPainter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp index 93016b62b8..180f15d8fb 100644 --- a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp +++ b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp @@ -5,6 +5,10 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#if defined(__GNUC__) && !defined(__clang__) +# pragma GCC optimize("O3") +#endif + #include "FillPathImplementation.h" #include #include