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

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

Issue 2269143003: cc : Add OnTransformAnimated to transform tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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_impl.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // be computed between any pair of nodes that have an ancestor/descendant 147 // be computed between any pair of nodes that have an ancestor/descendant
148 // relationship. Transforms between other pairs of nodes may only be computed 148 // relationship. Transforms between other pairs of nodes may only be computed
149 // if the following condition holds: let id1 the larger id and let id2 be the 149 // if the following condition holds: let id1 the larger id and let id2 be the
150 // other id; then the nearest ancestor of node id1 whose id is smaller than 150 // other id; then the nearest ancestor of node id1 whose id is smaller than
151 // id2 is the lowest common ancestor of the pair of nodes, and the transform 151 // id2 is the lowest common ancestor of the pair of nodes, and the transform
152 // from this lowest common ancestor to node id2 is only a 2d translation. 152 // from this lowest common ancestor to node id2 is only a 2d translation.
153 bool ComputeTransform(int source_id, 153 bool ComputeTransform(int source_id,
154 int dest_id, 154 int dest_id,
155 gfx::Transform* transform) const; 155 gfx::Transform* transform) const;
156 156
157 void OnTransformAnimated(const gfx::Transform& transform,
158 int id,
159 LayerTreeImpl* layer_tree_impl);
157 // Computes the change of basis transform from node |source_id| to |dest_id|. 160 // Computes the change of basis transform from node |source_id| to |dest_id|.
158 // This is used by scroll children to compute transform from their scroll 161 // This is used by scroll children to compute transform from their scroll
159 // parent space (source) to their parent space (destination) and it can atmost 162 // parent space (source) to their parent space (destination) and it can atmost
160 // be a translation. This function assumes that the path from source to 163 // be a translation. This function assumes that the path from source to
161 // destination has only translations. So, it should not be called when there 164 // destination has only translations. So, it should not be called when there
162 // can be intermediate 3d transforms but the end result is a translation. 165 // can be intermediate 3d transforms but the end result is a translation.
163 bool ComputeTranslation(int source_id, 166 bool ComputeTranslation(int source_id,
164 int dest_id, 167 int dest_id,
165 gfx::Transform* transform) const; 168 gfx::Transform* transform) const;
166 169
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 gfx::Vector2dF inner_viewport_container_bounds_delta_; 618 gfx::Vector2dF inner_viewport_container_bounds_delta_;
616 gfx::Vector2dF outer_viewport_container_bounds_delta_; 619 gfx::Vector2dF outer_viewport_container_bounds_delta_;
617 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 620 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
618 621
619 PropertyTreesCachedData cached_data_; 622 PropertyTreesCachedData cached_data_;
620 }; 623 };
621 624
622 } // namespace cc 625 } // namespace cc
623 626
624 #endif // CC_TREES_PROPERTY_TREE_H_ 627 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698