| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 bool GetFromTarget(int transform_id, | 647 bool GetFromTarget(int transform_id, |
| 648 int effect_id, | 648 int effect_id, |
| 649 gfx::Transform* from_target) const; | 649 gfx::Transform* from_target) const; |
| 650 | 650 |
| 651 void ResetCachedData(); | 651 void ResetCachedData(); |
| 652 void UpdateTransformTreeUpdateNumber(); | 652 void UpdateTransformTreeUpdateNumber(); |
| 653 gfx::Transform ToScreenSpaceTransformWithoutSurfaceContentsScale( | 653 gfx::Transform ToScreenSpaceTransformWithoutSurfaceContentsScale( |
| 654 int transform_id, | 654 int transform_id, |
| 655 int effect_id) const; | 655 int effect_id) const; |
| 656 | 656 |
| 657 bool ComputeTransformFromTarget(int transform_id, | |
| 658 int effect_id, | |
| 659 gfx::Transform* transform) const; | |
| 660 | |
| 661 private: | 657 private: |
| 662 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 658 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 663 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 659 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 664 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 660 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 665 | 661 |
| 666 // GetDrawTransforms may change the value of cached_data_. | 662 // GetDrawTransforms may change the value of cached_data_. |
| 667 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 663 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
| 668 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 664 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
| 669 int effect_id) const; | 665 int effect_id) const; |
| 670 | 666 |
| 671 PropertyTreesCachedData cached_data_; | 667 PropertyTreesCachedData cached_data_; |
| 672 }; | 668 }; |
| 673 | 669 |
| 674 } // namespace cc | 670 } // namespace cc |
| 675 | 671 |
| 676 #endif // CC_TREES_PROPERTY_TREE_H_ | 672 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |