From 39f8684892c2da1f9e8d166a5abc4d400dc08f18 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Fri, 25 Oct 2019 12:27:22 -0400 Subject: [PATCH] Force enable OOP rasterization Turns on out of process raster for the renderer whenever gpu raster would have been used. Enables the chromium_raster_transport extension. This is being done because BaseMark Web 3.0 suffers and the switch seems to be highly enabled by field trials in Chrome. --- app/brave_main_delegate.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/brave_main_delegate.cc b/app/brave_main_delegate.cc index fcd408ed373ac..9012cb7f3c06f 100644 --- a/app/brave_main_delegate.cc +++ b/app/brave_main_delegate.cc @@ -31,6 +31,7 @@ #include "components/unified_consent/feature.h" #include "components/sync/driver/sync_driver_switches.h" #include "content/public/common/content_features.h" +#include "content/public/common/content_switches.h" #include "extensions/common/extension_features.h" #include "services/network/public/cpp/features.h" #include "third_party/widevine/cdm/buildflags.h" @@ -144,6 +145,10 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) { switches::kExtensionContentVerificationEnforceStrict); command_line.AppendSwitchASCII(switches::kExtensionsInstallVerification, "enforce"); + // Otherwise BaseMark Web 3.0 suffers and it seems to be highly enabled + // by field trials in Chrome. + command_line.AppendSwitchASCII(switches::kEnableOopRasterization, + "Enabled"); // Brave's sync protocol does not use the sync service url command_line.AppendSwitchASCII(switches::kSyncServiceURL,