From 12266d2233abf07e698a044806d9ab03103a3114 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Mon, 1 Oct 2018 11:59:06 -0400 Subject: [PATCH] Adjust GPU features to match Chrome Chrome has oop rasterization and Viz disabled. Fix https://github.com/brave/brave-browser/issues/1219 Fix https://github.com/brave/brave-browser/issues/1160 Fix https://github.com/brave/brave-browser/issues/1151 --- app/brave_main_delegate.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/brave_main_delegate.cc b/app/brave_main_delegate.cc index 97d0b560b96b..d6f95f1e0e7d 100644 --- a/app/brave_main_delegate.cc +++ b/app/brave_main_delegate.cc @@ -21,8 +21,10 @@ #include "chrome/common/chrome_paths_internal.h" #include "chrome/common/chrome_switches.h" #include "components/password_manager/core/common/password_manager_features.h" +#include "components/viz/common/features.h" #include "content/public/common/content_features.h" #include "extensions/common/extension_features.h" +#include "gpu/config/gpu_finch_features.h" #include "ui/base/ui_base_features.h" #if !defined(CHROME_MULTIPLE_DLL_BROWSER) @@ -129,7 +131,9 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) { << "," << extensions::features::kNewExtensionUpdaterService.name; std::stringstream disabled_features; - disabled_features << features::kSharedArrayBuffer.name; + disabled_features << features::kSharedArrayBuffer.name + << "," << features::kDefaultEnableOopRasterization.name + << "," << features::kVizDisplayCompositor.name; command_line.AppendSwitchASCII(switches::kEnableFeatures, enabled_features.str());