WindowServer: Remove Screen::init()

This function only did one thing: call Screen::set_resolution().
We always call that function when opening the underlying device anyway,
so this was completely redundant.

This makes the first screen compose happen ~60ms earlier on my machine.
This commit is contained in:
Andreas Kling 2021-10-25 23:45:55 +02:00
commit 693423bbe8
Notes: sideshowbarker 2024-07-18 01:52:12 +09:00
2 changed files with 0 additions and 6 deletions

View file

@ -264,11 +264,6 @@ void Screen::scale_factor_changed()
constrain_pending_flush_rects(); constrain_pending_flush_rects();
} }
void Screen::init()
{
set_resolution(true);
}
Screen& Screen::closest_to_rect(const Gfx::IntRect& rect) Screen& Screen::closest_to_rect(const Gfx::IntRect& rect)
{ {
Screen* best_screen = nullptr; Screen* best_screen = nullptr;

View file

@ -75,7 +75,6 @@ public:
update_bounding_rect(); update_bounding_rect();
if (!s_main_screen) if (!s_main_screen)
s_main_screen = screen_ptr; s_main_screen = screen_ptr;
screen_ptr->init();
return screen_ptr; return screen_ptr;
} }
~Screen(); ~Screen();