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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 12095053: cc: Avoid expensive RenderingStats collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use WebSettings 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 8b1f8e985466a3194a7968a1ae47141fa6bdb2d3..aaa9b4fce6e96b41e47a900e66ead8eef9e6bad2 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -532,6 +532,8 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
prefs.css_grid_layout_enabled =
command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
+ prefs.record_rendering_stats =
+ command_line.HasSwitch(switches::kEnableGpuBenchmarking);
bool touch_device_present = false;
#if defined(USE_AURA) && defined(USE_X11)

Powered by Google App Engine
This is Rietveld 408576698