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

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

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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/occlusion_tracker_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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // TODO(vollick): will be moved when accelerated effects are implemented. 63 // TODO(vollick): will be moved when accelerated effects are implemented.
64 bool needs_local_transform_update; 64 bool needs_local_transform_update;
65 65
66 bool is_invertible; 66 bool is_invertible;
67 bool ancestors_are_invertible; 67 bool ancestors_are_invertible;
68 68
69 bool is_animated; 69 bool is_animated;
70 bool to_screen_is_animated; 70 bool to_screen_is_animated;
71 71
72 bool flattens; 72 // We don't necessarily create a transform node to apply flattening. If we've
73 // skipped flattening for an ancestor, we must flatten the transform we
74 // inherit, but we don't necessarily need to flatten our local transform. We
75 // must therefore use two values to describe the flattening required for the
76 // local and inherited transforms.
77 bool flattens_inherited_transform;
78 bool flattens_local_transform;
73 bool scrolls; 79 bool scrolls;
74 80
75 bool needs_sublayer_scale; 81 bool needs_sublayer_scale;
76 // This is used as a fallback when we either cannot adjust raster scale or if 82 // This is used as a fallback when we either cannot adjust raster scale or if
77 // the raster scale cannot be extracted from the screen space transform. 83 // the raster scale cannot be extracted from the screen space transform.
78 float layer_scale_factor; 84 float layer_scale_factor;
79 gfx::Vector2dF sublayer_scale; 85 gfx::Vector2dF sublayer_scale;
80 86
81 // TODO(vollick): will be moved when accelerated effects are implemented. 87 // TODO(vollick): will be moved when accelerated effects are implemented.
82 gfx::Vector2dF scroll_offset; 88 gfx::Vector2dF scroll_offset;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void UpdateSnapping(TransformNode* node); 188 void UpdateSnapping(TransformNode* node);
183 }; 189 };
184 190
185 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {}; 191 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {};
186 192
187 class CC_EXPORT OpacityTree final : public PropertyTree<OpacityNode> {}; 193 class CC_EXPORT OpacityTree final : public PropertyTree<OpacityNode> {};
188 194
189 } // namespace cc 195 } // namespace cc
190 196
191 #endif // CC_TREES_PROPERTY_TREE_H_ 197 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698