summaryrefslogtreecommitdiffstats
path: root/cc/trees/property_tree_builder.h
blob: 7f5f479ec1c9df43a84c92ac7889d22a285ce887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CC_TREES_PROPERTY_TREE_BUILDER_H_
#define CC_TREES_PROPERTY_TREE_BUILDER_H_

#include <vector>

#include "cc/trees/layer_tree_host_common.h"
#include "cc/trees/property_tree.h"

namespace cc {

class LayerTreeHost;

class PropertyTreeBuilder {
 public:
  // Building an opacity tree is optional, and can be skipped by passing
  // in a null |opacity_tree|.
  static void BuildPropertyTrees(Layer* root_layer,
                                 const Layer* page_scale_layer,
                                 float page_scale_factor,
                                 float device_scale_factor,
                                 const gfx::Rect& viewport,
                                 const gfx::Transform& device_transform,
                                 TransformTree* transform_tree,
                                 ClipTree* clip_tree,
                                 OpacityTree* opacity_tree);
};

}  // namespace cc

#endif  // CC_TREES_PROPERTY_TREE_BUILDER_H_