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

Unified Diff: chrome/browser/gpu_util.cc

Issue 10796048: Disable force-compositing-mode experiment when using swiftshader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable entire experiment Created 8 years, 5 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 10293ad9271f4987b4801617c2a774f415cdcd43..c2541180cd4fde9da5e53a7dc46eb9cc79da4294 100644
--- a/chrome/browser/gpu_util.cc
+++ b/chrome/browser/gpu_util.cc
@@ -193,6 +193,11 @@ void InitializeForceCompositingModeFieldTrial() {
return;
#endif
+ // The performance of accelerated compositing is too low with software
+ // rendering.
+ if (content::GpuDataManager::GetInstance()->ShouldUseSoftwareRendering())
+ return;
+
// Don't activate the field trial if force-compositing-mode has been
// explicitly disabled from the command line.
if (CommandLine::ForCurrentProcess()->HasSwitch(
« 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