| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 float opacity; | 263 float opacity; |
| 264 float screen_space_opacity; | 264 float screen_space_opacity; |
| 265 | 265 |
| 266 bool has_render_surface; | 266 bool has_render_surface; |
| 267 RenderSurfaceImpl* render_surface; | 267 RenderSurfaceImpl* render_surface; |
| 268 bool has_copy_request; | 268 bool has_copy_request; |
| 269 bool has_background_filters; | 269 bool has_background_filters; |
| 270 bool hidden_by_backface_visibility; | 270 bool hidden_by_backface_visibility; |
| 271 bool double_sided; | 271 bool double_sided; |
| 272 bool is_drawn; | 272 bool is_drawn; |
| 273 // TODO(jaydasika) : Delete this after implementation of |
| 274 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) |
| 275 bool subtree_hidden; |
| 273 bool has_animated_opacity; | 276 bool has_animated_opacity; |
| 274 // We need to track changes to effects on the compositor to compute damage | 277 // We need to track changes to effects on the compositor to compute damage |
| 275 // rect. | 278 // rect. |
| 276 bool effect_changed; | 279 bool effect_changed; |
| 277 int num_copy_requests_in_subtree; | 280 int num_copy_requests_in_subtree; |
| 278 int transform_id; | 281 int transform_id; |
| 279 int clip_id; | 282 int clip_id; |
| 280 // Effect node id of which this effect contributes to. | 283 // Effect node id of which this effect contributes to. |
| 281 int target_id; | 284 int target_id; |
| 282 | 285 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 gfx::RectF ViewportClip(); | 544 gfx::RectF ViewportClip(); |
| 542 | 545 |
| 543 void ToProtobuf(proto::PropertyTree* proto) const; | 546 void ToProtobuf(proto::PropertyTree* proto) const; |
| 544 void FromProtobuf(const proto::PropertyTree& proto); | 547 void FromProtobuf(const proto::PropertyTree& proto); |
| 545 }; | 548 }; |
| 546 | 549 |
| 547 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> { | 550 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> { |
| 548 public: | 551 public: |
| 549 bool operator==(const EffectTree& other) const; | 552 bool operator==(const EffectTree& other) const; |
| 550 | 553 |
| 554 float EffectiveOpacity(const EffectNode* node) const; |
| 555 |
| 551 void UpdateEffects(int id); | 556 void UpdateEffects(int id); |
| 552 | 557 |
| 553 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); | 558 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); |
| 554 | 559 |
| 555 void ClearCopyRequests(); | 560 void ClearCopyRequests(); |
| 556 | 561 |
| 557 bool ContributesToDrawnSurface(int id); | 562 bool ContributesToDrawnSurface(int id); |
| 558 | 563 |
| 559 void ResetChangeTracking(); | 564 void ResetChangeTracking(); |
| 560 | 565 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 | 691 |
| 687 private: | 692 private: |
| 688 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 693 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 689 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 694 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 690 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 695 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 691 }; | 696 }; |
| 692 | 697 |
| 693 } // namespace cc | 698 } // namespace cc |
| 694 | 699 |
| 695 #endif // CC_TREES_PROPERTY_TREE_H_ | 700 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |