mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Don't queue rendering task for empty display lists
This commit is contained in:
committed by
Jelle Raaijmakers
parent
cf143cf118
commit
bc0ec84100
Notes:
github-actions[bot]
2025-04-02 21:23:39 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/bc0ec84100c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4199 Reviewed-by: https://github.com/gmta ✅
@@ -56,7 +56,7 @@ void RenderingThread::rendering_thread_loop()
|
||||
}
|
||||
}
|
||||
|
||||
void RenderingThread::enqueue_rendering_task(RefPtr<Painting::DisplayList> display_list, NonnullRefPtr<Gfx::PaintingSurface> painting_surface, Function<void()>&& callback)
|
||||
void RenderingThread::enqueue_rendering_task(NonnullRefPtr<Painting::DisplayList> display_list, NonnullRefPtr<Gfx::PaintingSurface> painting_surface, Function<void()>&& callback)
|
||||
{
|
||||
Threading::MutexLocker const locker { m_rendering_task_mutex };
|
||||
m_rendering_tasks.enqueue(Task { move(display_list), move(painting_surface), move(callback) });
|
||||
|
||||
Reference in New Issue
Block a user