mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
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:
parent
47c140610d
commit
693423bbe8
2 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue