| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LAYER_TREE_HOST_COMMON_TEST_H_ | 5 #ifndef CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
| 6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 float page_scale_factor, | 103 float page_scale_factor, |
| 104 LayerType* page_scale_application_layer) { | 104 LayerType* page_scale_application_layer) { |
| 105 ExecuteCalculateDrawProperties(root_layer, device_scale_factor, | 105 ExecuteCalculateDrawProperties(root_layer, device_scale_factor, |
| 106 page_scale_factor, | 106 page_scale_factor, |
| 107 page_scale_application_layer, false, false); | 107 page_scale_application_layer, false, false); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void ExecuteCalculateDrawPropertiesWithPropertyTrees(Layer* layer); | 110 void ExecuteCalculateDrawPropertiesWithPropertyTrees(Layer* layer); |
| 111 void ExecuteCalculateDrawPropertiesWithPropertyTrees(LayerImpl* layer); | 111 void ExecuteCalculateDrawPropertiesWithPropertyTrees(LayerImpl* layer); |
| 112 | 112 |
| 113 void ExecuteCalculateDrawPropertiesWithoutSeparateSurfaces( |
| 114 LayerImpl* root_layer); |
| 115 |
| 113 LayerImplList* render_surface_layer_list_impl() const { | 116 LayerImplList* render_surface_layer_list_impl() const { |
| 114 return render_surface_layer_list_impl_.get(); | 117 return render_surface_layer_list_impl_.get(); |
| 115 } | 118 } |
| 116 | 119 |
| 117 const LayerList& update_layer_list() const { return update_layer_list_; } | 120 const LayerList& update_layer_list() const { return update_layer_list_; } |
| 118 bool UpdateLayerListContains(int id) const; | 121 bool UpdateLayerListContains(int id) const; |
| 119 | 122 |
| 120 int render_surface_layer_list_count() const { | 123 int render_surface_layer_list_count() const { |
| 121 return render_surface_layer_list_count_; | 124 return render_surface_layer_list_count_; |
| 122 } | 125 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 134 class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase, | 137 class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase, |
| 135 public testing::Test { | 138 public testing::Test { |
| 136 public: | 139 public: |
| 137 LayerTreeHostCommonTest(); | 140 LayerTreeHostCommonTest(); |
| 138 explicit LayerTreeHostCommonTest(const LayerTreeSettings& settings); | 141 explicit LayerTreeHostCommonTest(const LayerTreeSettings& settings); |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 } // namespace cc | 144 } // namespace cc |
| 142 | 145 |
| 143 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 146 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
| OLD | NEW |