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

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

Issue 2895793002: Track transform animation content readiness on TransformNode. (Closed)
Patch Set: 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // Layer scale factor is used as a fallback when we either cannot adjust 117 // Layer scale factor is used as a fallback when we either cannot adjust
118 // raster scale or if the raster scale cannot be extracted from the screen 118 // raster scale or if the raster scale cannot be extracted from the screen
119 // space transform. For layers in the subtree of the page scale layer, the 119 // space transform. For layers in the subtree of the page scale layer, the
120 // layer scale factor should include the page scale factor. 120 // layer scale factor should include the page scale factor.
121 bool in_subtree_of_page_scale_layer : 1; 121 bool in_subtree_of_page_scale_layer : 1;
122 122
123 // We need to track changes to to_screen transform to compute the damage rect. 123 // We need to track changes to to_screen transform to compute the damage rect.
124 bool transform_changed : 1; 124 bool transform_changed : 1;
125 125
126 // Whether all tiles for the animation's content have been ready
127 // since the transform last animated. Only relevant when animated.
128 bool ready_since_animation : 1;
wkorman 2017/05/20 01:31:28 Is there a reason we can't/shouldn't do this on th
pdr. 2017/05/22 17:03:34 Tiles sort of feel like a Layer concept more than
wkorman 2017/05/22 17:18:25 Well, it's already on Layer (well, LayerImpl) toda
enne (OOO) 2017/05/22 18:51:59 Sorry, but I agree strongly with pdr here. Tiles
wkorman 2017/05/22 18:55:52 That's cool, I am happy to rework it. How do you f
129
126 // TODO(vollick): will be moved when accelerated effects are implemented. 130 // TODO(vollick): will be moved when accelerated effects are implemented.
127 float post_local_scale_factor; 131 float post_local_scale_factor;
128 132
129 // TODO(vollick): will be moved when accelerated effects are implemented. 133 // TODO(vollick): will be moved when accelerated effects are implemented.
130 gfx::ScrollOffset scroll_offset; 134 gfx::ScrollOffset scroll_offset;
131 135
132 // This value stores the snapped amount whenever we snap. If the snap is due 136 // This value stores the snapped amount whenever we snap. If the snap is due
133 // to a scroll, we need it to calculate fixed-pos elements adjustment, even 137 // to a scroll, we need it to calculate fixed-pos elements adjustment, even
134 // otherwise we may need it to undo the snapping next frame. 138 // otherwise we may need it to undo the snapping next frame.
135 gfx::Vector2dF snap_amount; 139 gfx::Vector2dF snap_amount;
(...skipping 27 matching lines...) Expand all
163 gfx::Transform to_screen; 167 gfx::Transform to_screen;
164 168
165 bool is_showing_backface : 1; 169 bool is_showing_backface : 1;
166 170
167 bool operator==(const TransformCachedNodeData& other) const; 171 bool operator==(const TransformCachedNodeData& other) const;
168 }; 172 };
169 173
170 } // namespace cc 174 } // namespace cc
171 175
172 #endif // CC_TREES_TRANSFORM_NODE_H_ 176 #endif // CC_TREES_TRANSFORM_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698