mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
Print the number of WindowManager recompose() calls to debugger.
This commit is contained in:
parent
39e236d346
commit
f3ec96a1b9
Notes:
sideshowbarker
2024-07-19 16:05:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f3ec96a1b90
2 changed files with 3 additions and 0 deletions
|
@ -279,6 +279,7 @@ void WindowManager::handlePaintEvent(PaintEvent& event)
|
|||
|
||||
void WindowManager::recompose()
|
||||
{
|
||||
printf("[WM] recompose_count: %u\n", ++m_recompose_count);
|
||||
auto& framebuffer = FrameBufferSDL::the();
|
||||
m_rootWidget->repaint(m_rootWidget->rect());
|
||||
for (auto* window = m_windows_in_order.head(); window; window = window->next()) {
|
||||
|
|
|
@ -66,4 +66,6 @@ private:
|
|||
Rect m_lastDragRect;
|
||||
Rect m_dragStartRect;
|
||||
Rect m_dragEndRect;
|
||||
|
||||
unsigned m_recompose_count { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue