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

Unified Diff: chrome/app/chrome_dll_main.cc

Issue 3342016: Turning WebGL and the accelerated compositor on by default (linux and windows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | « no previous file | chrome/browser/dom_ui/ntp_resource_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_dll_main.cc
===================================================================
--- chrome/app/chrome_dll_main.cc (revision 58489)
+++ chrome/app/chrome_dll_main.cc (working copy)
@@ -566,6 +566,21 @@
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.
« no previous file with comments | « no previous file | chrome/browser/dom_ui/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698