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 "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
8 #include "cc/debug/lap_timer.h" | 8 #include "cc/debug/lap_timer.h" |
9 #include "cc/resources/layer_painter.h" | 9 #include "cc/resources/layer_painter.h" |
10 #include "cc/test/fake_impl_proxy.h" | 10 #include "cc/test/fake_impl_proxy.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 TestSharedBitmapManager shared_bitmap_manager_; | 53 TestSharedBitmapManager shared_bitmap_manager_; |
54 TestTaskGraphRunner task_graph_runner_; | 54 TestTaskGraphRunner task_graph_runner_; |
55 FakeLayerTreeHostImpl host_impl_; | 55 FakeLayerTreeHostImpl host_impl_; |
56 | 56 |
57 FakeLayerTreeHostClient fake_client_; | 57 FakeLayerTreeHostClient fake_client_; |
58 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; | 58 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; |
59 LapTimer timer_; | 59 LapTimer timer_; |
60 }; | 60 }; |
61 | 61 |
62 TEST_F(LayerPerfTest, PushPropertiesTo) { | 62 TEST_F(LayerPerfTest, PushPropertiesTo) { |
63 scoped_refptr<Layer> test_layer = Layer::Create(); | 63 scoped_refptr<Layer> test_layer = Layer::Create(LayerSettings()); |
64 scoped_ptr<LayerImpl> impl_layer = | 64 scoped_ptr<LayerImpl> impl_layer = |
65 LayerImpl::Create(host_impl_.active_tree(), 1); | 65 LayerImpl::Create(host_impl_.active_tree(), 1); |
66 | 66 |
67 layer_tree_host_->SetRootLayer(test_layer); | 67 layer_tree_host_->SetRootLayer(test_layer); |
68 | 68 |
69 float transform_origin_z = 0; | 69 float transform_origin_z = 0; |
70 bool scrollable = true; | 70 bool scrollable = true; |
71 bool contents_opaque = true; | 71 bool contents_opaque = true; |
72 bool double_sided = true; | 72 bool double_sided = true; |
73 bool hide_layer_and_subtree = true; | 73 bool hide_layer_and_subtree = true; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 "", | 114 "", |
115 "props_didnt_change", | 115 "props_didnt_change", |
116 timer_.LapsPerSecond(), | 116 timer_.LapsPerSecond(), |
117 "runs/s", | 117 "runs/s", |
118 true); | 118 true); |
119 } | 119 } |
120 | 120 |
121 | 121 |
122 } // namespace | 122 } // namespace |
123 } // namespace cc | 123 } // namespace cc |
OLD | NEW |