Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: chrome/browser/about_flags.cc

Issue 10546113: Added a command line flag that disables force-compositing-mode and modified the about:flags entry t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/gpu_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
===================================================================
--- chrome/browser/about_flags.cc (revision 141860)
+++ chrome/browser/about_flags.cc (working copy)
@@ -102,6 +102,14 @@
switches::kOmniboxInlineHistoryQuickProviderProhibited }
};
+const Experiment::Choice kForceCompositingModeChoices[] = {
+ { IDS_FLAGS_FORCE_COMPOSITING_MODE_DEFAULT, "", "" },
+ { IDS_FLAGS_FORCE_COMPOSITING_MODE_ENABLED,
+ switches::kForceCompositingMode, ""},
+ { IDS_FLAGS_FORCE_COMPOSITING_MODE_DISABLED,
+ switches::kDisableForceCompositingMode, ""}
+};
+
const Experiment::Choice kThreadedCompositingModeChoices[] = {
{ IDS_FLAGS_THREADED_COMPOSITING_MODE_DEFAULT, "", "" },
{ IDS_FLAGS_THREADED_COMPOSITING_MODE_DISABLED,
@@ -206,8 +214,8 @@
"force-compositing-mode-2",
IDS_FLAGS_FORCE_COMPOSITING_MODE_NAME,
IDS_FLAGS_FORCE_COMPOSITING_MODE_DESCRIPTION,
- kOsAll,
- SINGLE_VALUE_TYPE(switches::kForceCompositingMode)
+ kOsMac | kOsWin | kOsLinux,
+ MULTI_VALUE_TYPE(kForceCompositingModeChoices)
},
{
"threaded-compositing-mode",
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/gpu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698