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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include "cc/debug/micro_benchmark_controller.h" | 8 #include "cc/debug/micro_benchmark_controller.h" |
9 #include "cc/test/fake_impl_task_runner_provider.h" | 9 #include "cc/test/fake_impl_task_runner_provider.h" |
10 #include "cc/test/fake_layer_tree_host_client.h" | 10 #include "cc/test/fake_layer_tree_host_client.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void SetNeedsCommit() override; | 55 void SetNeedsCommit() override; |
56 void SetNeedsUpdateLayers() override {} | 56 void SetNeedsUpdateLayers() override {} |
57 | 57 |
58 void SetRootLayer(scoped_refptr<Layer> root_layer) { | 58 void SetRootLayer(scoped_refptr<Layer> root_layer) { |
59 layer_tree_->SetRootLayer(root_layer); | 59 layer_tree_->SetRootLayer(root_layer); |
60 } | 60 } |
61 Layer* root_layer() const { return layer_tree_->root_layer(); } | 61 Layer* root_layer() const { return layer_tree_->root_layer(); } |
62 PropertyTrees* property_trees() const { | 62 PropertyTrees* property_trees() const { |
63 return layer_tree_->property_trees(); | 63 return layer_tree_->property_trees(); |
64 } | 64 } |
| 65 PropertyTrees* test_property_trees_with_new_clip_tree() const { |
| 66 return layer_tree_->test_property_trees_with_new_clip_tree(); |
| 67 } |
65 void BuildPropertyTreesForTesting() { | 68 void BuildPropertyTreesForTesting() { |
66 layer_tree_->BuildPropertyTreesForTesting(); | 69 layer_tree_->BuildPropertyTreesForTesting(); |
67 } | 70 } |
68 | 71 |
69 LayerImpl* CommitAndCreateLayerImplTree(); | 72 LayerImpl* CommitAndCreateLayerImplTree(); |
70 LayerImpl* CommitAndCreatePendingTree(); | 73 LayerImpl* CommitAndCreatePendingTree(); |
71 | 74 |
72 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; } | 75 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; } |
73 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); } | 76 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); } |
74 LayerTreeImpl* pending_tree() { return host_impl_.pending_tree(); } | 77 LayerTreeImpl* pending_tree() { return host_impl_.pending_tree(); } |
(...skipping 22 matching lines...) Expand all Loading... |
97 private: | 100 private: |
98 FakeImplTaskRunnerProvider task_runner_provider_; | 101 FakeImplTaskRunnerProvider task_runner_provider_; |
99 FakeLayerTreeHostClient* client_; | 102 FakeLayerTreeHostClient* client_; |
100 FakeLayerTreeHostImpl host_impl_; | 103 FakeLayerTreeHostImpl host_impl_; |
101 bool needs_commit_; | 104 bool needs_commit_; |
102 }; | 105 }; |
103 | 106 |
104 } // namespace cc | 107 } // namespace cc |
105 | 108 |
106 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ | 109 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ |
OLD | NEW |