Chromium Code Reviews| 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 the id of the | |
| 275 // render surface's target. | |
|
ajuma
2016/03/29 13:41:10
For a node that corresponds to a surface, it looks
jaydasika
2016/03/29 16:03:45
Done.
| |
| 276 int target_id; | |
| 274 | 277 |
| 275 bool operator==(const EffectNodeData& other) const; | 278 bool operator==(const EffectNodeData& other) const; |
| 276 | 279 |
| 277 void ToProtobuf(proto::TreeNode* proto) const; | 280 void ToProtobuf(proto::TreeNode* proto) const; |
| 278 void FromProtobuf(const proto::TreeNode& proto); | 281 void FromProtobuf(const proto::TreeNode& proto); |
| 279 }; | 282 }; |
| 280 | 283 |
| 281 typedef TreeNode<EffectNodeData> EffectNode; | 284 typedef TreeNode<EffectNodeData> EffectNode; |
| 282 | 285 |
| 283 struct CC_EXPORT ScrollNodeData { | 286 struct CC_EXPORT ScrollNodeData { |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 671 | 674 |
| 672 private: | 675 private: |
| 673 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 676 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 674 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 677 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 675 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 678 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 676 }; | 679 }; |
| 677 | 680 |
| 678 } // namespace cc | 681 } // namespace cc |
| 679 | 682 |
| 680 #endif // CC_TREES_PROPERTY_TREE_H_ | 683 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |