| 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_TREES_PROPERTY_TREE_BUILDER_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_BUILDER_H_ |
| 6 #define CC_TREES_PROPERTY_TREE_BUILDER_H_ | 6 #define CC_TREES_PROPERTY_TREE_BUILDER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "cc/trees/layer_tree_host_common.h" | 10 #include "cc/trees/layer_tree_host_common.h" |
| 11 #include "cc/trees/property_tree.h" | 11 #include "cc/trees/property_tree.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 class LayerTreeHost; | |
| 16 | |
| 17 class PropertyTreeBuilder { | 15 class PropertyTreeBuilder { |
| 18 public: | 16 public: |
| 19 static Layer* FindFirstScrollableLayer(Layer* root_layer); | 17 static Layer* FindFirstScrollableLayer(Layer* root_layer); |
| 20 | 18 |
| 21 static void CC_EXPORT PreCalculateMetaInformation(Layer* root_layer); | 19 static void CC_EXPORT PreCalculateMetaInformation(Layer* root_layer); |
| 22 static void CC_EXPORT | 20 static void CC_EXPORT |
| 23 PreCalculateMetaInformationForTesting(LayerImpl* root_layer); | 21 PreCalculateMetaInformationForTesting(LayerImpl* root_layer); |
| 24 | 22 |
| 25 static void CC_EXPORT | 23 static void CC_EXPORT |
| 26 BuildPropertyTrees(Layer* root_layer, | 24 BuildPropertyTrees(Layer* root_layer, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 43 float page_scale_factor, | 41 float page_scale_factor, |
| 44 float device_scale_factor, | 42 float device_scale_factor, |
| 45 const gfx::Rect& viewport, | 43 const gfx::Rect& viewport, |
| 46 const gfx::Transform& device_transform, | 44 const gfx::Transform& device_transform, |
| 47 PropertyTrees* property_trees); | 45 PropertyTrees* property_trees); |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace cc | 48 } // namespace cc |
| 51 | 49 |
| 52 #endif // CC_TREES_PROPERTY_TREE_BUILDER_H_ | 50 #endif // CC_TREES_PROPERTY_TREE_BUILDER_H_ |
| OLD | NEW |