53 lines
2.4 KiB
Diff
53 lines
2.4 KiB
Diff
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
Date: Sat, 16 Nov 2019 11:18:09 +0100
|
|
Subject: Add flag to disable WebGL
|
|
|
|
---
|
|
chrome/browser/about_flags.cc | 3 +++
|
|
chrome/browser/flag_descriptions.cc | 4 ++++
|
|
chrome/browser/flag_descriptions.h | 3 +++
|
|
3 files changed, 10 insertions(+)
|
|
|
|
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
|
|
--- a/chrome/browser/about_flags.cc
|
|
+++ b/chrome/browser/about_flags.cc
|
|
@@ -2465,6 +2465,9 @@ const FeatureEntry kFeatureEntries[] = {
|
|
flag_descriptions::kAccelerated2dCanvasName,
|
|
flag_descriptions::kAccelerated2dCanvasDescription, kOsAll,
|
|
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAccelerated2dCanvas)},
|
|
+ {switches::kDisableWebGL, flag_descriptions::kDisableWebGLName,
|
|
+ flag_descriptions::kDisableWebGLDescription, kOsAll,
|
|
+ SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebGL)},
|
|
{"composited-layer-borders", flag_descriptions::kCompositedLayerBordersName,
|
|
flag_descriptions::kCompositedLayerBordersDescription, kOsAll,
|
|
SINGLE_VALUE_TYPE(cc::switches::kShowCompositedLayerBorders)},
|
|
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
|
|
--- a/chrome/browser/flag_descriptions.cc
|
|
+++ b/chrome/browser/flag_descriptions.cc
|
|
@@ -494,6 +494,10 @@ const char kEnableAudioFocusEnforcementName[] = "Audio Focus Enforcement";
|
|
const char kEnableAudioFocusEnforcementDescription[] =
|
|
"Enables enforcement of a single media session having audio focus at "
|
|
"any one time. Requires #enable-media-session-service to be enabled too.";
|
|
+const char kDisableWebGLName[] = "Disable all versions of WebGL";
|
|
+
|
|
+const char kDisableWebGLDescription[] = "Disable all versions of WebGL";
|
|
+
|
|
|
|
const char kEnableAutofillAccountWalletStorageName[] =
|
|
"Enable the account data storage for autofill";
|
|
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
|
|
--- a/chrome/browser/flag_descriptions.h
|
|
+++ b/chrome/browser/flag_descriptions.h
|
|
@@ -306,6 +306,9 @@ extern const char kDisallowDocWrittenScriptsUiDescription[];
|
|
|
|
extern const char kEnableAccessibilityObjectModelName[];
|
|
extern const char kEnableAccessibilityObjectModelDescription[];
|
|
+extern const char kDisableWebGLName[];
|
|
+extern const char kDisableWebGLDescription[];
|
|
+
|
|
|
|
extern const char kEnableAudioFocusEnforcementName[];
|
|
extern const char kEnableAudioFocusEnforcementDescription[];
|
|
--
|
|
2.17.1
|
|
|