Chromium Code Reviews| Index: cc/trees/transform_node.h |
| diff --git a/cc/trees/transform_node.h b/cc/trees/transform_node.h |
| index 76f2a7c2ffc3a6c0eda666721c547d71d6955196..3214d12993a86b7c81044e62c480bb4815d2aaf6 100644 |
| --- a/cc/trees/transform_node.h |
| +++ b/cc/trees/transform_node.h |
| @@ -69,14 +69,33 @@ struct CC_EXPORT TransformNode { |
| // TODO(vollick): will be moved when accelerated effects are implemented. |
| bool needs_local_transform_update : 1; |
| + // Whether this node or any ancestor has a potentially running |
| + // (i.e., irrespective of exact timeline) transform animation or an |
| + // invertible transform. Defaults to true. See also |
|
chrishtr
2017/05/13 01:07:18
Defaults to true is I think a bit misleading here,
wkorman
2017/05/15 19:48:27
Brief update -- working on this since this morning
|
| + // TransformTree::UpdateNodeAndAncestorsAreAnimatedOrInvertible. |
| bool node_and_ancestors_are_animated_or_invertible : 1; |
|
pdr.
2017/05/13 02:25:33
This might be cleaner if we just tracked ancestor_
enne (OOO)
2017/05/15 17:14:51
Agreed on both counts.
wkorman
2017/05/15 19:48:27
Acknowledged.
wkorman
2017/05/15 23:53:17
Current logic in TransformTree::UpdateNodeAndAnces
jaydasika
2017/05/15 23:53:54
We already have the separate bools you have mentio
wkorman
2017/05/16 00:28:01
Is the below equivalent?
T2.node_and_ancestors_
jaydasika
2017/05/16 01:48:02
It's not equivalent. For case 2 in my example, if
|
| bool is_invertible : 1; |
| + // Whether the transform from this node to the screen is |
| + // invertible. Defaults to true. See also |
| + // TransformTree::UpdateScreenSpaceTransform. |
| bool ancestors_are_invertible : 1; |
| + // Whether this node has a potentially running (i.e., irrespective |
| + // of exact timeline) transform animation. Defaults to false. |
|
chrishtr
2017/05/13 01:07:18
Defaults to false, vs true above for
node_and_ance
wkorman
2017/05/15 19:48:27
Acknowledged.
|
| bool has_potential_animation : 1; |
| + // Whether this node has a currently running transform |
| + // animation. Defaults to false. |
|
enne (OOO)
2017/05/15 17:14:51
I'm not sure I really like all this "defaults to f
wkorman
2017/05/15 19:48:27
Removed all notes about defaults in these comments
|
| bool is_currently_animating : 1; |
| + // Whether this node *or an ancestor* has a potentially running |
| + // (i.e., irrespective of exact timeline) transform |
| + // animation. Defaults to false. See also |
| + // TransformTree::UpdateAnimationProperties. |
| bool to_screen_is_potentially_animated : 1; |
| + // Whether all animations on this transform node are simple |
| + // translations. Defaults to true. Used when computing animation |
|
enne (OOO)
2017/05/15 17:14:51
I'm not sure that explaining where this is used ad
wkorman
2017/05/15 19:48:27
Removed this and similar above.
|
| + // scale factor for caching. See also |
| + // PropertyTrees::GetAnimationScales. |
| bool has_only_translation_animations : 1; |
| // Flattening, when needed, is only applied to a node's inherited transform, |