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

Unified Diff: content/browser/gpu/compositor_util.cc

Issue 11938025: ChromeOS default switches cleanup - switches::kEnableThreadedCompositing and switches::kEnableSmoot… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/browser/chromeos/login/login_utils.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 962821562851e53a68edb40a8c98b37c900ced3f..9e679b087512bf24d5d072dc128a213ce49858ef 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -61,6 +61,12 @@ bool IsThreadedCompositingEnabled() {
command_line.HasSwitch(switches::kDisableThreadedCompositing))
return false;
+#if defined(OS_CHROMEOS)
+ // We always want threaded compositing on ChromeOS unless it's explicitly
+ // disabled above.
+ return true;
+#endif
+
if (command_line.HasSwitch(switches::kEnableThreadedCompositing))
return true;
@@ -88,6 +94,11 @@ bool IsForceCompositingModeEnabled() {
if (command_line.HasSwitch(switches::kDisableForceCompositingMode))
return false;
+#if defined(OS_CHROMEOS)
+ // We always want compositing ChromeOS unless it's explicitly disabled above.
+ return true;
+#endif
+
if (command_line.HasSwitch(switches::kForceCompositingMode))
return true;
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698