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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/fake_layer_tree_host_impl.h" 5 #include "cc/test/fake_layer_tree_host_impl.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy) 9 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy)
10 : LayerTreeHostImpl(LayerTreeSettings(), &client_, proxy) 10 : rendering_stats_recorder_(RenderingStatsRecorder::create()),
11 LayerTreeHostImpl(LayerTreeSettings(),
12 &client_,
13 proxy,
14 rendering_stats_recorder_.get())
11 { 15 {
12 // Explicitly clear all debug settings. 16 // Explicitly clear all debug settings.
13 setDebugState(LayerTreeDebugState()); 17 setDebugState(LayerTreeDebugState());
14 } 18 }
15 19
16 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl( 20 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
17 const LayerTreeSettings& settings, 21 const LayerTreeSettings& settings,
18 Proxy* proxy) 22 Proxy* proxy)
19 : LayerTreeHostImpl(settings, &client_, proxy) 23 : rendering_stats_recorder_(RenderingStatsRecorder::create()),
24 LayerTreeHostImpl(settings,
25 &client_,
26 proxy,
27 rendering_stats_recorder_.get())
20 { 28 {
21 // Explicitly clear all debug settings. 29 // Explicitly clear all debug settings.
22 setDebugState(LayerTreeDebugState()); 30 setDebugState(LayerTreeDebugState());
23 } 31 }
24 32
25 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() 33 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl()
26 { 34 {
27 } 35 }
28 36
29 } // namespace cc 37 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698