summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authorvangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 17:46:09 +0000
committervangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 17:46:09 +0000
commitc0ad0313bafabf5bd7f303cf5f6bd93b653677e8 (patch)
treecef3bae882b6418a4c06bf7f06c5dd3607631049 /chrome/app
parent60159295ccf289e95b1da3120351aa8f9cdf9444 (diff)
downloadchromium_src-c0ad0313bafabf5bd7f303cf5f6bd93b653677e8.zip
chromium_src-c0ad0313bafabf5bd7f303cf5f6bd93b653677e8.tar.gz
chromium_src-c0ad0313bafabf5bd7f303cf5f6bd93b653677e8.tar.bz2
Turning WebGL and the accelerated compositor on by default (linux and windows only for the compositor),
removing the --enable-webgl flag and adding --disable-webgl and --disable-accelerated-compositing. On the mac --enable-accelerated-compositing still needs to be supplied to enable the compositor. BUG=54469 Review URL: http://codereview.chromium.org/3342016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/chrome_dll_main.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index 02f554d..d17b347 100644
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -566,6 +566,21 @@ int ChromeMain(int argc, char** argv) {
singleton_command_line->AppendSwitch(switches::kEnableGPUPlugin);
}
+ // TODO(vangelis): Remove this block once accelerated compositing is enabled
+ // on all platforms.
+#if defined(OS_MACOSX)
+ // Accelerated compositing is currently disabled by default on the mac, as it
+ // is less stable than other platforms. We disable it by adding a disable
+ // to the command line switches. Note that the rest of the code only checks
+ // for the disable flag, never for enable.
+ if (!parsed_command_line.HasSwitch(
+ switches::kEnableAcceleratedCompositing)) {
+ CommandLine* singleton_command_line = CommandLine::ForCurrentProcess();
+ singleton_command_line->AppendSwitch(
+ switches::kDisableAcceleratedCompositing);
+ }
+#endif
+
#if defined(OS_CHROMEOS)
if (parsed_command_line.HasSwitch(switches::kBWSI)) {
// Disable sync and extensions if we're in "browse without sign-in" mode.