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

Unified Diff: chrome/browser/gpu_util.cc

Issue 10541019: Adding a field trial for testing --force-compositing-mode on 50% of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: chrome/browser/gpu_util.cc
===================================================================
--- chrome/browser/gpu_util.cc (revision 140632)
+++ chrome/browser/gpu_util.cc (working copy)
@@ -14,6 +14,7 @@
#include "base/sys_info.h"
#include "base/values.h"
#include "base/version.h"
+#include "chrome/browser/chrome_browser_main.h"
#include "chrome/browser/gpu_blacklist.h"
#include "content/public/browser/gpu_data_manager.h"
#include "content/public/common/content_switches.h"
@@ -314,8 +315,9 @@
(!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableThreadedCompositing));
if (kGpuFeatureInfo[i].name == "compositing" &&
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kForceCompositingMode))
+ (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kForceCompositingMode) ||
+ chrome_browser_trials::g_in_force_compositing_mode_trial))
status += "_force";
if (kGpuFeatureInfo[i].name == "compositing" &&
has_thread)
« chrome/browser/chrome_browser_main.cc ('K') | « chrome/browser/chrome_content_browser_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698