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

Unified Diff: ui/compositor/compositor.cc

Issue 11414017: cc: handling debug settings in new LayerTreeDebugState structure (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 170216 Created 8 years, 1 month 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 | « cc/layer_tree_host_impl.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 2350bdafcb3df3e060b29fa8268902e9436e9db7..a36e96b916f4fc372d886e2ad0e75d9089dd7ae6 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();
}
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698