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
3 // found in the LICENSE file.
5 #ifndef CC_TREES_PROPERTY_TREE_BUILDER_H_
6 #define CC_TREES_PROPERTY_TREE_BUILDER_H_
10 #include "cc/trees/layer_tree_host_common.h"
11 #include "cc/trees/property_tree.h"
17 class PropertyTreeBuilder
{
19 // Building an opacity tree is optional, and can be skipped by passing
20 // in a null |opacity_tree|.
21 static void BuildPropertyTrees(Layer
* root_layer
,
22 const Layer
* page_scale_layer
,
23 const Layer
* inner_viewport_scroll_layer
,
24 const Layer
* outer_viewport_scroll_layer
,
25 float page_scale_factor
,
26 float device_scale_factor
,
27 const gfx::Rect
& viewport
,
28 const gfx::Transform
& device_transform
,
29 PropertyTrees
* property_trees
);
30 static void BuildPropertyTrees(LayerImpl
* root_layer
,
31 const LayerImpl
* page_scale_layer
,
32 const LayerImpl
* inner_viewport_scroll_layer
,
33 const LayerImpl
* outer_viewport_scroll_layer
,
34 float page_scale_factor
,
35 float device_scale_factor
,
36 const gfx::Rect
& viewport
,
37 const gfx::Transform
& device_transform
,
38 PropertyTrees
* property_trees
);
43 #endif // CC_TREES_PROPERTY_TREE_BUILDER_H_