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

Unified Diff: cc/test/layer_tree_test.cc

Issue 12519006: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to LayerTreeTest 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/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index de550c6ea7bda01351fb93ddd4790b2f40b92b88..e2782a58ac8325dd9260f18a9036c4506a2cfc97 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -69,19 +69,27 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl {
TestHooks* test_hooks,
const LayerTreeSettings& settings,
LayerTreeHostImplClient* host_impl_client,
- Proxy* proxy) {
- return make_scoped_ptr(new LayerTreeHostImplForTesting(test_hooks,
- settings,
- host_impl_client,
- proxy));
+ Proxy* proxy,
+ RenderingStatsInstrumentation* stats_instrumentation) {
+ return make_scoped_ptr(
+ new LayerTreeHostImplForTesting(test_hooks,
+ settings,
+ host_impl_client,
+ proxy,
+ stats_instrumentation));
}
protected:
- LayerTreeHostImplForTesting(TestHooks* test_hooks,
- const LayerTreeSettings& settings,
- LayerTreeHostImplClient* host_impl_client,
- Proxy* proxy)
- : LayerTreeHostImpl(settings, host_impl_client, proxy),
+ LayerTreeHostImplForTesting(
+ TestHooks* test_hooks,
+ const LayerTreeSettings& settings,
+ LayerTreeHostImplClient* host_impl_client,
+ Proxy* proxy,
+ RenderingStatsInstrumentation* stats_instrumentation)
+ : LayerTreeHostImpl(settings,
+ host_impl_client,
+ proxy,
+ stats_instrumentation),
test_hooks_(test_hooks) {}
virtual void BeginCommit() OVERRIDE {
@@ -191,7 +199,8 @@ class LayerTreeHostForTesting : public cc::LayerTreeHost {
test_hooks_,
settings(),
host_impl_client,
- proxy()).PassAs<cc::LayerTreeHostImpl>();
+ proxy(),
+ rendering_stats_instrumentation()).PassAs<cc::LayerTreeHostImpl>();
}
virtual void SetNeedsCommit() OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698