diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-28 10:51:58 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-28 12:55:58 +0100 |
commit | 8460d02651a1669ba3cdcc7cf277ceda1c0447de (patch) | |
tree | dddede930d4da5b0e51d628aeef354a4a53d22e8 /Servers/WindowServer | |
parent | 7beae405085cffb74ab5218b74b061b3af61783f (diff) | |
download | serenity-8460d02651a1669ba3cdcc7cf277ceda1c0447de.zip |
WindowServer: Remove some old unused debugging code from Compositor
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r-- | Servers/WindowServer/Compositor.cpp | 7 | ||||
-rw-r--r-- | Servers/WindowServer/Compositor.h | 2 | ||||
-rw-r--r-- | Servers/WindowServer/WindowManager.cpp | 1 |
3 files changed, 0 insertions, 10 deletions
diff --git a/Servers/WindowServer/Compositor.cpp b/Servers/WindowServer/Compositor.cpp index adf6d13276..519d867116 100644 --- a/Servers/WindowServer/Compositor.cpp +++ b/Servers/WindowServer/Compositor.cpp @@ -126,9 +126,6 @@ void Compositor::compose() dirty_rects.add(Gfx::Rect::intersection(m_last_cursor_rect, Screen::the().rect())); dirty_rects.add(Gfx::Rect::intersection(m_last_dnd_rect, Screen::the().rect())); dirty_rects.add(Gfx::Rect::intersection(current_cursor_rect(), Screen::the().rect())); -#ifdef DEBUG_COUNTERS - dbgprintf("[WM] compose #%u (%u rects)\n", ++m_compose_count, dirty_rects.rects().size()); -#endif auto any_dirty_rect_intersects_window = [&dirty_rects](const Window& window) { auto window_frame_rect = window.frame().rect(); @@ -264,10 +261,6 @@ void Compositor::flush(const Gfx::Rect& a_rect) { auto rect = Gfx::Rect::intersection(a_rect, Screen::the().rect()); -#ifdef DEBUG_COUNTERS - dbgprintf("[WM] flush #%u (%d,%d %dx%d)\n", ++m_flush_count, rect.x(), rect.y(), rect.width(), rect.height()); -#endif - Gfx::RGBA32* front_ptr = m_front_bitmap->scanline(rect.y()) + rect.x(); Gfx::RGBA32* back_ptr = m_back_bitmap->scanline(rect.y()) + rect.x(); size_t pitch = m_back_bitmap->pitch(); diff --git a/Servers/WindowServer/Compositor.h b/Servers/WindowServer/Compositor.h index 8a20b6c5c5..56c61bea3a 100644 --- a/Servers/WindowServer/Compositor.h +++ b/Servers/WindowServer/Compositor.h @@ -71,8 +71,6 @@ private: void draw_menubar(); void run_animations(); - unsigned m_compose_count { 0 }; - unsigned m_flush_count { 0 }; RefPtr<Core::Timer> m_compose_timer; RefPtr<Core::Timer> m_immediate_compose_timer; bool m_flash_flush { false }; diff --git a/Servers/WindowServer/WindowManager.cpp b/Servers/WindowServer/WindowManager.cpp index e368f686d5..3f4c4f3822 100644 --- a/Servers/WindowServer/WindowManager.cpp +++ b/Servers/WindowServer/WindowManager.cpp @@ -51,7 +51,6 @@ #include <time.h> #include <unistd.h> -//#define DEBUG_COUNTERS //#define RESIZE_DEBUG //#define MOVE_DEBUG //#define DOUBLECLICK_DEBUG |