Skip to content

Commit

Permalink
Adjust GPU features to match Chrome
Browse files Browse the repository at this point in the history
Chrome has oop rasterization and Viz disabled.

Fix brave/brave-browser#1219
Fix brave/brave-browser#1160
Fix brave/brave-browser#1151
  • Loading branch information
bbondy committed Oct 1, 2018
1 parent cea3513 commit 12266d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 12266d2

Please sign in to comment.