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

Unified Diff: cc/test/fake_layer_tree_host_impl.cc

Issue 12519006: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Early out in methods, pass raw pointers, updated tests Created 7 years, 9 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
Index: cc/test/fake_layer_tree_host_impl.cc
diff --git a/cc/test/fake_layer_tree_host_impl.cc b/cc/test/fake_layer_tree_host_impl.cc
index 64d0150da9f96b448745aef098ed6b2a6559266d..66d1b33ece4b3da5c9c3f4fb26faaa29559f848e 100644
--- a/cc/test/fake_layer_tree_host_impl.cc
+++ b/cc/test/fake_layer_tree_host_impl.cc
@@ -7,7 +7,11 @@
namespace cc {
FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy)
- : LayerTreeHostImpl(LayerTreeSettings(), &client_, proxy)
+ : rendering_stats_recorder_(RenderingStatsRecorder::create()),
+ LayerTreeHostImpl(LayerTreeSettings(),
+ &client_,
+ proxy,
+ rendering_stats_recorder_.get())
{
// Explicitly clear all debug settings.
setDebugState(LayerTreeDebugState());
@@ -16,7 +20,11 @@ FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy)
FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
const LayerTreeSettings& settings,
Proxy* proxy)
- : LayerTreeHostImpl(settings, &client_, proxy)
+ : rendering_stats_recorder_(RenderingStatsRecorder::create()),
+ LayerTreeHostImpl(settings,
+ &client_,
+ proxy,
+ rendering_stats_recorder_.get())
{
// Explicitly clear all debug settings.
setDebugState(LayerTreeDebugState());

Powered by Google App Engine
This is Rietveld 408576698