| 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 <memory> | 10 #include <memory> |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); | 624 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); |
| 625 | 625 |
| 626 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); | 626 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); |
| 627 void PushCopyRequestsTo(EffectTree* other_tree); | 627 void PushCopyRequestsTo(EffectTree* other_tree); |
| 628 void TakeCopyRequestsAndTransformToSurface( | 628 void TakeCopyRequestsAndTransformToSurface( |
| 629 int node_id, | 629 int node_id, |
| 630 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); | 630 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); |
| 631 bool HasCopyRequests() const; | 631 bool HasCopyRequests() const; |
| 632 void ClearCopyRequests(); | 632 void ClearCopyRequests(); |
| 633 | 633 |
| 634 int ClosestAncestorWithCopyRequest(int id) const; |
| 635 |
| 634 void AddMaskOrReplicaLayerId(int id); | 636 void AddMaskOrReplicaLayerId(int id); |
| 635 const std::vector<int>& mask_replica_layer_ids() const { | 637 const std::vector<int>& mask_replica_layer_ids() const { |
| 636 return mask_replica_layer_ids_; | 638 return mask_replica_layer_ids_; |
| 637 } | 639 } |
| 638 | 640 |
| 639 bool ContributesToDrawnSurface(int id); | 641 bool ContributesToDrawnSurface(int id); |
| 640 | 642 |
| 641 void ResetChangeTracking(); | 643 void ResetChangeTracking(); |
| 642 | 644 |
| 643 void ToProtobuf(proto::PropertyTree* proto) const; | 645 void ToProtobuf(proto::PropertyTree* proto) const; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 | 790 |
| 789 private: | 791 private: |
| 790 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 792 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 791 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 793 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 792 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 794 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 793 }; | 795 }; |
| 794 | 796 |
| 795 } // namespace cc | 797 } // namespace cc |
| 796 | 798 |
| 797 #endif // CC_TREES_PROPERTY_TREE_H_ | 799 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |