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

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

Issue 2883713002: Document some transform node animation fields. (Closed)
Patch Set: Sync to head. Created 3 years, 7 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/README.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TRANSFORM_NODE_H_ 5 #ifndef CC_TREES_TRANSFORM_NODE_H_
6 #define CC_TREES_TRANSFORM_NODE_H_ 6 #define CC_TREES_TRANSFORM_NODE_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "ui/gfx/geometry/point_f.h" 9 #include "ui/gfx/geometry/point_f.h"
10 #include "ui/gfx/geometry/scroll_offset.h" 10 #include "ui/gfx/geometry/scroll_offset.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int source_node_id; 62 int source_node_id;
63 63
64 // This id determines which 3d rendering context the node is in. 0 is a 64 // This id determines which 3d rendering context the node is in. 0 is a
65 // special value and indicates that the node is not in any 3d rendering 65 // special value and indicates that the node is not in any 3d rendering
66 // context. 66 // context.
67 int sorting_context_id; 67 int sorting_context_id;
68 68
69 // TODO(vollick): will be moved when accelerated effects are implemented. 69 // TODO(vollick): will be moved when accelerated effects are implemented.
70 bool needs_local_transform_update : 1; 70 bool needs_local_transform_update : 1;
71 71
72 // Whether this node or any ancestor has a potentially running
73 // (i.e., irrespective of exact timeline) transform animation or an
74 // invertible transform.
72 bool node_and_ancestors_are_animated_or_invertible : 1; 75 bool node_and_ancestors_are_animated_or_invertible : 1;
73 76
74 bool is_invertible : 1; 77 bool is_invertible : 1;
78 // Whether the transform from this node to the screen is
79 // invertible.
75 bool ancestors_are_invertible : 1; 80 bool ancestors_are_invertible : 1;
76 81
82 // Whether this node has a potentially running (i.e., irrespective
83 // of exact timeline) transform animation.
77 bool has_potential_animation : 1; 84 bool has_potential_animation : 1;
85 // Whether this node has a currently running transform animation.
78 bool is_currently_animating : 1; 86 bool is_currently_animating : 1;
87 // Whether this node *or an ancestor* has a potentially running
88 // (i.e., irrespective of exact timeline) transform
89 // animation.
79 bool to_screen_is_potentially_animated : 1; 90 bool to_screen_is_potentially_animated : 1;
91 // Whether all animations on this transform node are simple
92 // translations.
80 bool has_only_translation_animations : 1; 93 bool has_only_translation_animations : 1;
81 94
82 // Flattening, when needed, is only applied to a node's inherited transform, 95 // Flattening, when needed, is only applied to a node's inherited transform,
83 // never to its local transform. 96 // never to its local transform.
84 bool flattens_inherited_transform : 1; 97 bool flattens_inherited_transform : 1;
85 98
86 // This is true if the to_parent transform at every node on the path to the 99 // This is true if the to_parent transform at every node on the path to the
87 // root is flat. 100 // root is flat.
88 bool node_and_ancestors_are_flat : 1; 101 bool node_and_ancestors_are_flat : 1;
89 102
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 gfx::Transform to_screen; 163 gfx::Transform to_screen;
151 164
152 bool is_showing_backface : 1; 165 bool is_showing_backface : 1;
153 166
154 bool operator==(const TransformCachedNodeData& other) const; 167 bool operator==(const TransformCachedNodeData& other) const;
155 }; 168 };
156 169
157 } // namespace cc 170 } // namespace cc
158 171
159 #endif // CC_TREES_TRANSFORM_NODE_H_ 172 #endif // CC_TREES_TRANSFORM_NODE_H_
OLDNEW
« no previous file with comments | « cc/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698