summaryrefslogtreecommitdiffstats
path: root/content/renderer
diff options
context:
space:
mode:
authorernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 09:20:53 +0000
committerernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 09:20:53 +0000
commitfe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4 (patch)
treebda2a7c6c8787bf724dd4060314090d105e956e8 /content/renderer
parent11c14eaecadd86cffde07ec40c566093ad7e97b2 (diff)
downloadchromium_src-fe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4.zip
chromium_src-fe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4.tar.gz
chromium_src-fe3beef0a468d2a7cdb0ca7576efd2eac23ff7b4.tar.bz2
cc: Enable rendering stats recording in browser compositor.
This patch moves the kEnableGpuBenchmarking switch from content switches to cc switches for it to be accessible from ui/compositor/compositor.cc. If the flag is set, the browser compositor enalbes recording of rendering stats in its constructor. The recorded stats will be used by a follow-up patch that switches smoothness benchmark to use time stamps from the browser compositor when available. R=piman@chromium.org,nduca@chromium.org BUG=340747 Review URL: https://codereview.chromium.org/148983007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r--content/renderer/gpu/render_widget_compositor.cc2
-rw-r--r--content/renderer/render_thread_impl.cc2
-rw-r--r--content/renderer/render_widget.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 54a2d02..1ad2ab1 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -205,7 +205,7 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
cmd->HasSwitch(cc::switches::kShowNonOccludingRects);
settings.initial_debug_state.SetRecordRenderingStats(
- cmd->HasSwitch(switches::kEnableGpuBenchmarking));
+ cmd->HasSwitch(cc::switches::kEnableGpuBenchmarking));
if (cmd->HasSwitch(cc::switches::kSlowDownRasterScaleFactor)) {
const int kMinSlowDownScaleFactor = 0;
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 417edc0..7a8d51d 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -384,7 +384,7 @@ void RenderThreadImpl::Init() {
InitSkiaEventTracer();
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
+ if (command_line.HasSwitch(cc::switches::kEnableGpuBenchmarking))
RegisterExtension(GpuBenchmarkingExtension::Get());
// Note that under Linux, the media library will normally already have
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index ffcbabe..664d879 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -393,7 +393,7 @@ RenderWidget::RenderWidget(blink::WebPopupType popup_type,
legacy_software_mode_stats_ = cc::RenderingStatsInstrumentation::Create();
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableGpuBenchmarking))
+ cc::switches::kEnableGpuBenchmarking))
legacy_software_mode_stats_->set_record_rendering_stats(true);
}