Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: cc/trees/property_tree.h

Issue 2712053002: cc : Fix transform calculation bug while calculating clip rects (Closed)
Patch Set: clean_up Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698