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

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

Issue 2164833002: Use surface contents scale from effect tree (3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 5 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 // Computes the change of basis transform from node |source_id| to |dest_id|, 151 // Computes the change of basis transform from node |source_id| to |dest_id|,
152 // including any sublayer scale at |dest_id|. The function returns false iff 152 // including any sublayer scale at |dest_id|. The function returns false iff
153 // the inverse of a singular transform was used (and the result should, 153 // the inverse of a singular transform was used (and the result should,
154 // therefore, not be trusted). 154 // therefore, not be trusted).
155 bool ComputeTransformWithDestinationSurfaceContentsScale( 155 bool ComputeTransformWithDestinationSurfaceContentsScale(
156 int source_id, 156 int source_id,
157 int dest_id, 157 int dest_id,
158 gfx::Transform* transform) const; 158 gfx::Transform* transform) const;
159 159
160 // Returns true iff the nodes indexed by |source_id| and |dest_id| are 2D axis
161 // aligned with respect to one another.
162 bool Are2DAxisAligned(int source_id, int dest_id) const;
163
164 void ResetChangeTracking(); 160 void ResetChangeTracking();
165 // Updates the parent, target, and screen space transforms and snapping. 161 // Updates the parent, target, and screen space transforms and snapping.
166 void UpdateTransforms(int id); 162 void UpdateTransforms(int id);
167 void UpdateTransformChanged(TransformNode* node, 163 void UpdateTransformChanged(TransformNode* node,
168 TransformNode* parent_node, 164 TransformNode* parent_node,
169 TransformNode* source_node); 165 TransformNode* source_node);
170 void UpdateNodeAndAncestorsAreAnimatedOrInvertible( 166 void UpdateNodeAndAncestorsAreAnimatedOrInvertible(
171 TransformNode* node, 167 TransformNode* node,
172 TransformNode* parent_node); 168 TransformNode* parent_node);
173 169
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 gfx::Vector2dF inner_viewport_container_bounds_delta_; 558 gfx::Vector2dF inner_viewport_container_bounds_delta_;
563 gfx::Vector2dF outer_viewport_container_bounds_delta_; 559 gfx::Vector2dF outer_viewport_container_bounds_delta_;
564 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 560 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
565 561
566 PropertyTreesCachedData cached_data_; 562 PropertyTreesCachedData cached_data_;
567 }; 563 };
568 564
569 } // namespace cc 565 } // namespace cc
570 566
571 #endif // CC_TREES_PROPERTY_TREE_H_ 567 #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