diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-25 23:45:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-26 01:00:54 +0200 |
commit | 693423bbe849d579c18fff3b77792727672dbbed (patch) | |
tree | f3a7535d54ee8181426960cca3ed43a7ce07df5b /Userland/Services/WindowServer/Screen.h | |
parent | 47c140610d4064f6c5c17c9d3c56ad1a32c85e3e (diff) | |
download | serenity-693423bbe849d579c18fff3b77792727672dbbed.zip |
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.
Diffstat (limited to 'Userland/Services/WindowServer/Screen.h')
-rw-r--r-- | Userland/Services/WindowServer/Screen.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Screen.h b/Userland/Services/WindowServer/Screen.h index 0a961a6cb2..c4f8810984 100644 --- a/Userland/Services/WindowServer/Screen.h +++ b/Userland/Services/WindowServer/Screen.h @@ -75,7 +75,6 @@ public: update_bounding_rect(); if (!s_main_screen) s_main_screen = screen_ptr; - screen_ptr->init(); return screen_ptr; } ~Screen(); |