| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 std::vector<TransformCachedNodeData> cached_data_; | 305 std::vector<TransformCachedNodeData> cached_data_; |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> { | 308 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> { |
| 309 public: | 309 public: |
| 310 bool operator==(const ClipTree& other) const; | 310 bool operator==(const ClipTree& other) const; |
| 311 | 311 |
| 312 static const int kViewportNodeId = 1; | 312 static const int kViewportNodeId = 1; |
| 313 | 313 |
| 314 void SetViewportClip(gfx::RectF viewport_rect); | 314 void SetViewportClip(gfx::RectF viewport_rect); |
| 315 gfx::RectF ViewportClip(); | 315 gfx::RectF ViewportClip() const; |
| 316 | 316 |
| 317 void ToProtobuf(proto::PropertyTree* proto) const; | 317 void ToProtobuf(proto::PropertyTree* proto) const; |
| 318 void FromProtobuf(const proto::PropertyTree& proto, | 318 void FromProtobuf(const proto::PropertyTree& proto, |
| 319 std::unordered_map<int, int>* node_id_to_index_map); | 319 std::unordered_map<int, int>* node_id_to_index_map); |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> { | 322 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> { |
| 323 public: | 323 public: |
| 324 EffectTree(); | 324 EffectTree(); |
| 325 ~EffectTree(); | 325 ~EffectTree(); |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 627 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 628 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 628 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 629 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 629 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 630 | 630 |
| 631 PropertyTreesCachedData cached_data_; | 631 PropertyTreesCachedData cached_data_; |
| 632 }; | 632 }; |
| 633 | 633 |
| 634 } // namespace cc | 634 } // namespace cc |
| 635 | 635 |
| 636 #endif // CC_TREES_PROPERTY_TREE_H_ | 636 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |