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

Unified Diff: webkit/glue/webpreferences.cc

Issue 12095053: cc: Avoid expensive RenderingStats collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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 | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webpreferences.cc
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index f5f6886a2a5ed69520e30123598b55ca770411c4..a5839541c9246f5c00b76f8c49c4f248fb61e302 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -140,6 +140,7 @@ WebPreferences::WebPreferences()
#endif
supports_multiple_windows(true),
viewport_enabled(false),
+ record_rendering_stats(false),
cookie_enabled(true)
#if defined(OS_ANDROID)
,
@@ -382,6 +383,9 @@ void WebPreferences::Apply(WebView* web_view) const {
// overlay of rects, if requested on the command line.
settings->setShowPaintRects(show_paint_rects);
+ // Record rendering stats for benchmarks.
+ settings->setRecordRenderingStats(record_rendering_stats);
+
// Set whether to throttle framerate to Vsync.
settings->setRenderVSyncEnabled(render_vsync_enabled);
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698