LibWeb: Move painting surface allocation into rendering thread

Skia has a check in debug mode to verify that surface is only used
within one thread. Before this change we were violating this by
allocating surfaces on the main thread while using and destructing them
on the rendering thread.
This commit is contained in:
Aliaksandr Kalenik 2025-04-03 18:03:17 +02:00 committed by Alexander Kalenik
commit 12a2aebeb6
Notes: github-actions[bot] 2025-04-03 20:02:46 +00:00
6 changed files with 73 additions and 52 deletions

View file

@ -246,8 +246,7 @@ void PageClient::start_display_list_rendering(Web::DevicePixelRect const& conten
callback();
return;
}
auto painting_surface = traversable.painting_surface_for_backing_store(target);
traversable.start_display_list_rendering(*display_list, painting_surface, move(callback));
traversable.start_display_list_rendering(*display_list, target, move(callback));
}
Queue<Web::QueuedInputEvent>& PageClient::input_event_queue()