| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TRANSFORM_NODE_H_ | 5 #ifndef CC_TREES_TRANSFORM_NODE_H_ |
| 6 #define CC_TREES_TRANSFORM_NODE_H_ | 6 #define CC_TREES_TRANSFORM_NODE_H_ |
| 7 | 7 |
| 8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "ui/gfx/geometry/point_f.h" | 9 #include "ui/gfx/geometry/point_f.h" |
| 10 #include "ui/gfx/geometry/scroll_offset.h" | 10 #include "ui/gfx/geometry/scroll_offset.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 // TODO(sunxd): move this into PropertyTrees::cached_data_. | 143 // TODO(sunxd): move this into PropertyTrees::cached_data_. |
| 144 struct CC_EXPORT TransformCachedNodeData { | 144 struct CC_EXPORT TransformCachedNodeData { |
| 145 TransformCachedNodeData(); | 145 TransformCachedNodeData(); |
| 146 TransformCachedNodeData(const TransformCachedNodeData& other); | 146 TransformCachedNodeData(const TransformCachedNodeData& other); |
| 147 ~TransformCachedNodeData(); | 147 ~TransformCachedNodeData(); |
| 148 | 148 |
| 149 gfx::Transform from_screen; | 149 gfx::Transform from_screen; |
| 150 gfx::Transform to_screen; | 150 gfx::Transform to_screen; |
| 151 int target_id; | |
| 152 // This id is used for all content that draws into a render surface associated | |
| 153 // with this transform node. | |
| 154 int content_target_id; | |
| 155 | 151 |
| 156 bool is_showing_backface : 1; | 152 bool is_showing_backface : 1; |
| 157 | 153 |
| 158 bool operator==(const TransformCachedNodeData& other) const; | 154 bool operator==(const TransformCachedNodeData& other) const; |
| 159 }; | 155 }; |
| 160 | 156 |
| 161 } // namespace cc | 157 } // namespace cc |
| 162 | 158 |
| 163 #endif // CC_TREES_TRANSFORM_NODE_H_ | 159 #endif // CC_TREES_TRANSFORM_NODE_H_ |
| OLD | NEW |