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_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_H_ |
6 #define CC_TREES_PROPERTY_TREE_H_ | 6 #define CC_TREES_PROPERTY_TREE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 #include "ui/gfx/transform.h" | 13 #include "ui/gfx/transform.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 template <typename T> | 17 template <typename T> |
18 struct CC_EXPORT TreeNode { | 18 struct CC_EXPORT TreeNode { |
19 TreeNode() : id(-1), parent_id(-1), data() {} | 19 TreeNode() : id(-1), parent_id(-1), data() {} |
20 int id; | 20 int id; |
21 int parent_id; | 21 int parent_id; |
22 T data; | 22 T data; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 bool CombineInversesBetween(int source_id, | 130 bool CombineInversesBetween(int source_id, |
131 int dest_id, | 131 int dest_id, |
132 gfx::Transform* transform) const; | 132 gfx::Transform* transform) const; |
133 }; | 133 }; |
134 | 134 |
135 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {}; | 135 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {}; |
136 | 136 |
137 } // namespace cc | 137 } // namespace cc |
138 | 138 |
139 #endif // CC_TREES_PROPERTY_TREE_H_ | 139 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |