OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/layers/layer.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include "cc/debug/lap_timer.h" | 7 #include "cc/debug/lap_timer.h" |
8 #include "cc/resources/layer_painter.h" | 8 #include "cc/resources/layer_painter.h" |
9 #include "cc/test/fake_impl_proxy.h" | 9 #include "cc/test/fake_impl_proxy.h" |
10 #include "cc/test/fake_layer_tree_host.h" | 10 #include "cc/test/fake_layer_tree_host.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 : host_impl_(&proxy_, &shared_bitmap_manager_), | 33 : host_impl_(&proxy_, &shared_bitmap_manager_), |
34 fake_client_(FakeLayerTreeHostClient::DIRECT_3D), | 34 fake_client_(FakeLayerTreeHostClient::DIRECT_3D), |
35 timer_(kWarmupRuns, | 35 timer_(kWarmupRuns, |
36 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), | 36 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), |
37 kTimeCheckInterval) {} | 37 kTimeCheckInterval) {} |
38 | 38 |
39 protected: | 39 protected: |
40 virtual void SetUp() override { | 40 virtual void SetUp() override { |
41 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); | 41 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); |
42 layer_tree_host_->InitializeSingleThreaded( | 42 layer_tree_host_->InitializeSingleThreaded( |
43 &fake_client_, base::MessageLoopProxy::current()); | 43 &fake_client_, base::MessageLoopProxy::current(), nullptr); |
44 } | 44 } |
45 | 45 |
46 virtual void TearDown() override { | 46 virtual void TearDown() override { |
47 layer_tree_host_->SetRootLayer(nullptr); | 47 layer_tree_host_->SetRootLayer(nullptr); |
48 layer_tree_host_ = nullptr; | 48 layer_tree_host_ = nullptr; |
49 } | 49 } |
50 | 50 |
51 FakeImplProxy proxy_; | 51 FakeImplProxy proxy_; |
52 TestSharedBitmapManager shared_bitmap_manager_; | 52 TestSharedBitmapManager shared_bitmap_manager_; |
53 FakeLayerTreeHostImpl host_impl_; | 53 FakeLayerTreeHostImpl host_impl_; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 "", | 112 "", |
113 "props_didnt_change", | 113 "props_didnt_change", |
114 timer_.LapsPerSecond(), | 114 timer_.LapsPerSecond(), |
115 "runs/s", | 115 "runs/s", |
116 true); | 116 true); |
117 } | 117 } |
118 | 118 |
119 | 119 |
120 } // namespace | 120 } // namespace |
121 } // namespace cc | 121 } // namespace cc |
OLD | NEW |