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

Unified Diff: cc/delegated_renderer_layer_impl_unittest.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
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tree_host.h » ('j') | cc/layer_tree_host.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/delegated_renderer_layer_impl_unittest.cc
diff --git a/cc/delegated_renderer_layer_impl_unittest.cc b/cc/delegated_renderer_layer_impl_unittest.cc
index 7ab8b5a18a44b62799628873fb77c87a7c3d8d37..66849abc61d12900b0f753b24dd942df8468faa4 100644
--- a/cc/delegated_renderer_layer_impl_unittest.cc
+++ b/cc/delegated_renderer_layer_impl_unittest.cc
@@ -37,7 +37,13 @@ class DelegatedRendererLayerImplTest : public testing::Test {
LayerTreeSettings settings;
settings.minimumOcclusionTrackingSize = gfx::Size();
- host_impl_ = LayerTreeHostImpl::create(settings, &client_, &proxy_);
+ scoped_ptr<RenderingStatsRecorder> stats_recorder =
+ RenderingStatsRecorder::create();
+
+ host_impl_ = LayerTreeHostImpl::create(settings,
+ &client_,
+ &proxy_,
+ stats_recorder.get());
host_impl_->initializeRenderer(createFakeOutputSurface());
host_impl_->setViewportSize(gfx::Size(10, 10), gfx::Size(10, 10));
}
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tree_host.h » ('j') | cc/layer_tree_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698