Print the number of WindowManager recompose() calls to debugger.

This commit is contained in:
Andreas Kling 2019-01-09 04:18:28 +01:00
parent 39e236d346
commit f3ec96a1b9
Notes: sideshowbarker 2024-07-19 16:05:38 +09:00
2 changed files with 3 additions and 0 deletions

View file

@ -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()) {

View file

@ -66,4 +66,6 @@ private:
Rect m_lastDragRect;
Rect m_dragStartRect;
Rect m_dragEndRect;
unsigned m_recompose_count { 0 };
};