Index: ui/compositor/compositor.cc |
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc |
index e1c710443dee0fdaa71dd25d4d6f8f87b293da3b..16247b835f7efc66ace07e5977648c9e855a81c2 100644 |
--- a/ui/compositor/compositor.cc |
+++ b/ui/compositor/compositor.cc |
@@ -300,11 +300,13 @@ Compositor::Compositor(CompositorDelegate* delegate, |
CommandLine* command_line = CommandLine::ForCurrentProcess(); |
cc::LayerTreeSettings settings; |
- settings.showPlatformLayerTree = |
+ settings.initialDebugState.showFPSCounter = |
+ command_line->HasSwitch(switches::kUIShowFPSCounter); |
+ settings.initialDebugState.showPlatformLayerTree = |
command_line->HasSwitch(switches::kUIShowLayerTree); |
settings.refreshRate = |
test_compositor_enabled ? kTestRefreshRate : kDefaultRefreshRate; |
- settings.showDebugBorders = |
+ settings.initialDebugState.showDebugBorders = |
command_line->HasSwitch(switches::kUIShowLayerBorders); |
settings.partialSwapEnabled = |
command_line->HasSwitch(switches::kUIEnablePartialSwap); |
@@ -318,8 +320,6 @@ Compositor::Compositor(CompositorDelegate* delegate, |
} |
host_ = cc::LayerTreeHost::create(this, settings, thread.Pass()); |
- host_->setShowFPSCounter( |
- command_line->HasSwitch(switches::kUIShowFPSCounter)); |
host_->setRootLayer(root_web_layer_); |
host_->setSurfaceReady(); |
} |