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