[epiphany/pgriffis/web-extension/data-manager] 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] WebExtensions: Disable hardware acceleration to lower memory usage
- Date: Mon, 11 Jul 2022 00:32:39 +0000 (UTC)
commit 077b85aa5e998cbcbbda33c5dc3fa3cd4e64490f
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 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/webextension/ephy-web-extension-manager.c b/src/webextension/ephy-web-extension-manager.c
index 5ae6811ed..26ba05352 100644
--- a/src/webextension/ephy-web-extension-manager.c
+++ b/src/webextension/ephy-web-extension-manager.c
@@ -990,10 +990,14 @@ 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,
- "enable-fullscreen", FALSE,
+ settings = webkit_settings_new_with_settings (/* For debugging purposes. */
"enable-write-console-messages-to-stdout", TRUE,
+ "enable-developer-extras", TRUE,
+ /* Permissions. */
+ "enable-fullscreen", FALSE,
"javascript-can-access-clipboard",
ephy_web_extension_has_permission (web_extension, "clipboardWrite"),
+ /* Reducing memory usage. */
+ "hardware-acceleration-policy",
WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER,
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]