1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:37:45 +00:00

WebContent: Use Web::Platform::Timer instead of Core::Timer

This will allow WebContent to operate without a Core::EventLoop.
This commit is contained in:
Andreas Kling 2022-10-05 19:33:30 +02:00
parent e75645bbf8
commit f877782117
4 changed files with 6 additions and 4 deletions

View file

@ -14,6 +14,7 @@
#include <LibWeb/Cookie/ParsedCookie.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Loader/FileRequest.h>
#include <LibWeb/Platform/Timer.h>
#include <WebContent/Forward.h>
#include <WebContent/WebContentClientEndpoint.h>
#include <WebContent/WebContentConsoleClient.h>
@ -91,7 +92,7 @@ private:
i32 bitmap_id { -1 };
};
Vector<PaintRequest> m_pending_paint_requests;
RefPtr<Core::Timer> m_paint_flush_timer;
RefPtr<Web::Platform::Timer> m_paint_flush_timer;
HashMap<i32, NonnullRefPtr<Gfx::Bitmap>> m_backing_stores;