[epiphany/pgriffis/web-extension/data-manager: 3/3] WebExtensions: Disable hardware acceleration to lower memory usage
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/pgriffis/web-extension/data-manager: 3/3] WebExtensions: Disable hardware acceleration to lower memory usage
- Date: Wed, 13 Jul 2022 17:13:45 +0000 (UTC)
commit a3438b8fbda6abbc68f5cad008623f5ee5bedc50
Author: Patrick Griffis <pgriffis igalia com>
Date: Sun Jul 10 19:31:42 2022 -0500
WebExtensions: Disable hardware acceleration to lower memory usage
On my machine this takes it from 110-120 MB to 65-70 MB
src/webextension/ephy-web-extension-manager.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/webextension/ephy-web-extension-manager.c b/src/webextension/ephy-web-extension-manager.c
index dc14c2d23..be0116b66 100644
--- a/src/webextension/ephy-web-extension-manager.c
+++ b/src/webextension/ephy-web-extension-manager.c
@@ -990,10 +990,11 @@ ephy_web_extensions_manager_create_web_extensions_webview (EphyWebExtension *web
GtkWidget *web_view;
const char *custom_user_agent;
- settings = webkit_settings_new_with_settings ("enable-developer-extras", TRUE,
+ settings = webkit_settings_new_with_settings ("enable-write-console-messages-to-stdout", TRUE,
+ "enable-developer-extras", TRUE,
"enable-fullscreen", FALSE,
- "enable-write-console-messages-to-stdout", TRUE,
"javascript-can-access-clipboard",
ephy_web_extension_has_permission (web_extension, "clipboardWrite"),
+ "hardware-acceleration-policy",
WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER, /* Reduces memory usage. */
NULL);
custom_user_agent = g_hash_table_lookup (manager->user_agent_overrides,
ephy_web_extension_get_name (web_extension));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]