| 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 <map> |
| 10 #include <memory> | 11 #include <memory> |
| 11 #include <unordered_map> | 12 #include <unordered_map> |
| 12 #include <vector> | 13 #include <vector> |
| 13 | 14 |
| 14 #include "cc/animation/element_id.h" | 15 #include "cc/animation/element_id.h" |
| 15 #include "cc/base/cc_export.h" | 16 #include "cc/base/cc_export.h" |
| 16 #include "cc/base/synced_property.h" | 17 #include "cc/base/synced_property.h" |
| 17 #include "cc/output/filter_operations.h" | 18 #include "cc/output/filter_operations.h" |
| 18 #include "ui/gfx/geometry/rect_f.h" | 19 #include "ui/gfx/geometry/rect_f.h" |
| 19 #include "ui/gfx/geometry/scroll_offset.h" | 20 #include "ui/gfx/geometry/scroll_offset.h" |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 515 |
| 515 // TODO(sunxd): Move screen space transforms here if it can improve | 516 // TODO(sunxd): Move screen space transforms here if it can improve |
| 516 // performance. | 517 // performance. |
| 517 DrawTransformData() | 518 DrawTransformData() |
| 518 : update_number(-1), transforms(gfx::Transform(), gfx::Transform()) {} | 519 : update_number(-1), transforms(gfx::Transform(), gfx::Transform()) {} |
| 519 }; | 520 }; |
| 520 | 521 |
| 521 struct PropertyTreesCachedData { | 522 struct PropertyTreesCachedData { |
| 522 int property_tree_update_number; | 523 int property_tree_update_number; |
| 523 std::vector<AnimationScaleData> animation_scales; | 524 std::vector<AnimationScaleData> animation_scales; |
| 524 mutable std::vector<std::unordered_map<int, DrawTransformData>> | 525 mutable std::vector<std::map<int, DrawTransformData>> draw_transforms; |
| 525 draw_transforms; | |
| 526 | 526 |
| 527 PropertyTreesCachedData(); | 527 PropertyTreesCachedData(); |
| 528 ~PropertyTreesCachedData(); | 528 ~PropertyTreesCachedData(); |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 class CC_EXPORT PropertyTrees final { | 531 class CC_EXPORT PropertyTrees final { |
| 532 public: | 532 public: |
| 533 PropertyTrees(); | 533 PropertyTrees(); |
| 534 PropertyTrees(const PropertyTrees& other) = delete; | 534 PropertyTrees(const PropertyTrees& other) = delete; |
| 535 ~PropertyTrees(); | 535 ~PropertyTrees(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 622 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 623 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 623 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 624 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 624 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 625 | 625 |
| 626 PropertyTreesCachedData cached_data_; | 626 PropertyTreesCachedData cached_data_; |
| 627 }; | 627 }; |
| 628 | 628 |
| 629 } // namespace cc | 629 } // namespace cc |
| 630 | 630 |
| 631 #endif // CC_TREES_PROPERTY_TREE_H_ | 631 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |