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

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: fixing tests 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698