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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 struct CC_EXPORT EffectNodeData { | 256 struct CC_EXPORT EffectNodeData { |
257 EffectNodeData(); | 257 EffectNodeData(); |
258 EffectNodeData(const EffectNodeData& other); | 258 EffectNodeData(const EffectNodeData& other); |
259 | 259 |
260 float opacity; | 260 float opacity; |
261 float screen_space_opacity; | 261 float screen_space_opacity; |
262 | 262 |
263 bool has_render_surface; | 263 bool has_render_surface; |
264 bool has_copy_request; | 264 bool has_copy_request; |
265 bool has_background_filters; | 265 bool has_background_filters; |
| 266 bool node_or_ancestor_has_background_filters; |
| 267 bool to_screen_opacity_is_animated; |
| 268 bool node_or_ancestor_has_backface_visible_surface; |
| 269 bool double_sided; |
266 bool is_drawn; | 270 bool is_drawn; |
267 bool has_animated_opacity; | 271 bool has_animated_opacity; |
268 // We need to track changes to effects on the compositor to compute damage | 272 // We need to track changes to effects on the compositor to compute damage |
269 // rect. | 273 // rect. |
270 bool effect_changed; | 274 bool effect_changed; |
271 int num_copy_requests_in_subtree; | 275 int num_copy_requests_in_subtree; |
272 int transform_id; | 276 int transform_id; |
273 int clip_id; | 277 int clip_id; |
274 | 278 |
275 bool operator==(const EffectNodeData& other) const; | 279 bool operator==(const EffectNodeData& other) const; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 bool ContributesToDrawnSurface(int id); | 548 bool ContributesToDrawnSurface(int id); |
545 | 549 |
546 void ResetChangeTracking(); | 550 void ResetChangeTracking(); |
547 | 551 |
548 void ToProtobuf(proto::PropertyTree* proto) const; | 552 void ToProtobuf(proto::PropertyTree* proto) const; |
549 void FromProtobuf(const proto::PropertyTree& proto); | 553 void FromProtobuf(const proto::PropertyTree& proto); |
550 | 554 |
551 private: | 555 private: |
552 void UpdateOpacities(EffectNode* node, EffectNode* parent_node); | 556 void UpdateOpacities(EffectNode* node, EffectNode* parent_node); |
553 void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node); | 557 void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node); |
| 558 void UpdateBackfaceVisibility(EffectNode* node, EffectNode* parent_node); |
554 }; | 559 }; |
555 | 560 |
556 class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> { | 561 class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> { |
557 public: | 562 public: |
558 ScrollTree(); | 563 ScrollTree(); |
559 ~ScrollTree() override; | 564 ~ScrollTree() override; |
560 | 565 |
561 ScrollTree& operator=(const ScrollTree& from); | 566 ScrollTree& operator=(const ScrollTree& from); |
562 bool operator==(const ScrollTree& other) const; | 567 bool operator==(const ScrollTree& other) const; |
563 | 568 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 | 674 |
670 private: | 675 private: |
671 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 676 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
672 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 677 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
673 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 678 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
674 }; | 679 }; |
675 | 680 |
676 } // namespace cc | 681 } // namespace cc |
677 | 682 |
678 #endif // CC_TREES_PROPERTY_TREE_H_ | 683 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |