| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 bool has_copy_request; | 264 bool has_copy_request; |
| 265 bool has_background_filters; | 265 bool has_background_filters; |
| 266 bool is_drawn; | 266 bool is_drawn; |
| 267 bool has_animated_opacity; | 267 bool has_animated_opacity; |
| 268 // We need to track changes to effects on the compositor to compute damage | 268 // We need to track changes to effects on the compositor to compute damage |
| 269 // rect. | 269 // rect. |
| 270 bool effect_changed; | 270 bool effect_changed; |
| 271 int num_copy_requests_in_subtree; | 271 int num_copy_requests_in_subtree; |
| 272 int transform_id; | 272 int transform_id; |
| 273 int clip_id; | 273 int clip_id; |
| 274 // For a node that creates a render surface, target_id is its own id. |
| 275 int target_id; |
| 274 | 276 |
| 275 bool operator==(const EffectNodeData& other) const; | 277 bool operator==(const EffectNodeData& other) const; |
| 276 | 278 |
| 277 void ToProtobuf(proto::TreeNode* proto) const; | 279 void ToProtobuf(proto::TreeNode* proto) const; |
| 278 void FromProtobuf(const proto::TreeNode& proto); | 280 void FromProtobuf(const proto::TreeNode& proto); |
| 279 }; | 281 }; |
| 280 | 282 |
| 281 typedef TreeNode<EffectNodeData> EffectNode; | 283 typedef TreeNode<EffectNodeData> EffectNode; |
| 282 | 284 |
| 283 struct CC_EXPORT ScrollNodeData { | 285 struct CC_EXPORT ScrollNodeData { |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 | 673 |
| 672 private: | 674 private: |
| 673 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 675 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 674 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 676 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 675 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 677 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 676 }; | 678 }; |
| 677 | 679 |
| 678 } // namespace cc | 680 } // namespace cc |
| 679 | 681 |
| 680 #endif // CC_TREES_PROPERTY_TREE_H_ | 682 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |