diff options
author | Dylan Katz <dykatz@uw.edu> | 2022-01-10 19:06:11 -0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-21 22:14:13 +0100 |
commit | 3919a1dcc065b4c1a741ae9c2d7b8cd7ad2bb875 (patch) | |
tree | 5149e81bf13000ebf9eca4d278dfd841dc2931ab /Userland/Applications/Browser/Browser.h | |
parent | a2a93727db565eb1aba27f17b79735e4966b98a1 (diff) | |
download | serenity-3919a1dcc065b4c1a741ae9c2d7b8cd7ad2bb875.zip |
Browser: Load icons at start of program
Previously, Browser loaded icons from the disk every time an icon
was set. In addition to making more calls to the disk and decoding
more images, this makes error propagation impossible. This change
moves all icon loading to the start of the program.
Diffstat (limited to 'Userland/Applications/Browser/Browser.h')
-rw-r--r-- | Userland/Applications/Browser/Browser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/Browser.h b/Userland/Applications/Browser/Browser.h index fade37a00b..db773c58f2 100644 --- a/Userland/Applications/Browser/Browser.h +++ b/Userland/Applications/Browser/Browser.h @@ -7,11 +7,13 @@ #pragma once #include <AK/String.h> +#include <Applications/Browser/IconBag.h> namespace Browser { extern String g_home_url; extern String g_search_engine; extern Vector<String> g_content_filters; +extern IconBag g_icon_bag; } |