mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
WebContent: Use the accelerated_graphics CMake helper
Instead of relying on AK_OS_LINUX, actually use the more accurate HAS_ACCELERATED_GRAPHICS define to figure out if we should try to use the generic LibAccelGfx GPU painter.
This commit is contained in:
parent
26e5c20cfa
commit
40363f54d8
3 changed files with 15 additions and 2 deletions
|
@ -157,7 +157,7 @@ void PageHost::paint(Web::DevicePixelRect const& content_rect, Gfx::Bitmap& targ
|
|||
document->paintable()->paint_all_phases(context);
|
||||
|
||||
if (s_use_gpu_painter) {
|
||||
#ifdef AK_OS_LINUX
|
||||
#ifdef HAS_ACCELERATED_GRAPHICS
|
||||
Web::Painting::PaintingCommandExecutorGPU painting_command_executor(target);
|
||||
recording_painter.execute(painting_command_executor);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue