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 #include "cc/trees/property_tree_builder.h" | 5 #include "cc/trees/property_tree_builder.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
11 #include "cc/layers/layer.h" | 11 #include "cc/layers/layer.h" |
12 #include "cc/trees/layer_tree_host.h" | 12 #include "cc/trees/layer_tree_host.h" |
13 #include "ui/gfx/point_f.h" | 13 #include "ui/gfx/geometry/point_f.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 class LayerTreeHost; | 17 class LayerTreeHost; |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 struct DataForRecursion { | 21 struct DataForRecursion { |
22 TransformTree* transform_tree; | 22 TransformTree* transform_tree; |
23 ClipTree* clip_tree; | 23 ClipTree* clip_tree; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 data_for_recursion.clip_tree_parent = clip_tree->Insert(root_clip, 0); | 271 data_for_recursion.clip_tree_parent = clip_tree->Insert(root_clip, 0); |
272 | 272 |
273 BuildPropertyTreesInternal(root_layer, data_for_recursion); | 273 BuildPropertyTreesInternal(root_layer, data_for_recursion); |
274 | 274 |
275 TransformNode* transform_root = transform_tree->Node(transform_root_id); | 275 TransformNode* transform_root = transform_tree->Node(transform_root_id); |
276 transform_root->data.set_to_parent(device_transform * | 276 transform_root->data.set_to_parent(device_transform * |
277 transform_root->data.to_parent); | 277 transform_root->data.to_parent); |
278 } | 278 } |
279 | 279 |
280 } // namespace cc | 280 } // namespace cc |
OLD | NEW |