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

Unified Diff: chrome/browser/gpu_util.cc

Issue 10824271: Disable threaded compositing field trial on mac and linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_util.cc
diff --git a/chrome/browser/gpu_util.cc b/chrome/browser/gpu_util.cc
index 730aa722c0bab7b44508d0a2e09be5ca74dc6a35..d112903285ebe5117d01ded5aea62324269cb363 100644
--- a/chrome/browser/gpu_util.cc
+++ b/chrome/browser/gpu_util.cc
@@ -220,11 +220,19 @@ void InitializeCompositingFieldTrial() {
// threaded-compositing on with 1/3 probability each.
force_compositing_mode_probability = 1;
+#if defined(OS_MACOSX) || defined(OS_LINUX)
+ // Threaded compositing mode isn't feature complete on mac or linux yet:
+ // http://crbug.com/133602 for mac
+ // http://crbug.com/140866 for linux
+ threaded_compositing_probability = 0;
+#else
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableThreadedCompositing))
threaded_compositing_probability = 1;
+#endif
}
+
int force_compositing_group = trial->AppendGroup(
content::kGpuCompositingFieldTrialForceCompositingEnabledName,
force_compositing_mode_probability);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698