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

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

Issue 2451183002: Add sticky nodes affected by inner and outer viewport bounds deltas. (Closed)
Patch Set: Merge with master. Created 4 years, 1 month 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/property_tree_unittest.cc ('k') | cc/trees/transform_node.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 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/base/cc_export.h" 8 #include "cc/base/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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // This is needed to know if a layer can use lcd text. 92 // This is needed to know if a layer can use lcd text.
93 bool node_and_ancestors_have_only_integer_translation : 1; 93 bool node_and_ancestors_have_only_integer_translation : 1;
94 94
95 bool scrolls : 1; 95 bool scrolls : 1;
96 96
97 bool should_be_snapped : 1; 97 bool should_be_snapped : 1;
98 98
99 // These are used to position nodes wrt the right or bottom of the inner or 99 // These are used to position nodes wrt the right or bottom of the inner or
100 // outer viewport. 100 // outer viewport.
101 bool affected_by_inner_viewport_bounds_delta_x : 1; 101 bool moved_by_inner_viewport_bounds_delta_x : 1;
102 bool affected_by_inner_viewport_bounds_delta_y : 1; 102 bool moved_by_inner_viewport_bounds_delta_y : 1;
103 bool affected_by_outer_viewport_bounds_delta_x : 1; 103 bool moved_by_outer_viewport_bounds_delta_x : 1;
104 bool affected_by_outer_viewport_bounds_delta_y : 1; 104 bool moved_by_outer_viewport_bounds_delta_y : 1;
105 105
106 // Layer scale factor is used as a fallback when we either cannot adjust 106 // Layer scale factor is used as a fallback when we either cannot adjust
107 // raster scale or if the raster scale cannot be extracted from the screen 107 // raster scale or if the raster scale cannot be extracted from the screen
108 // space transform. For layers in the subtree of the page scale layer, the 108 // space transform. For layers in the subtree of the page scale layer, the
109 // layer scale factor should include the page scale factor. 109 // layer scale factor should include the page scale factor.
110 bool in_subtree_of_page_scale_layer : 1; 110 bool in_subtree_of_page_scale_layer : 1;
111 111
112 // We need to track changes to to_screen transform to compute the damage rect. 112 // We need to track changes to to_screen transform to compute the damage rect.
113 bool transform_changed : 1; 113 bool transform_changed : 1;
114 114
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 bool operator==(const TransformCachedNodeData& other) const; 161 bool operator==(const TransformCachedNodeData& other) const;
162 162
163 void ToProtobuf(proto::TransformCachedNodeData* proto) const; 163 void ToProtobuf(proto::TransformCachedNodeData* proto) const;
164 void FromProtobuf(const proto::TransformCachedNodeData& proto); 164 void FromProtobuf(const proto::TransformCachedNodeData& proto);
165 }; 165 };
166 166
167 } // namespace cc 167 } // namespace cc
168 168
169 #endif // CC_TREES_TRANSFORM_NODE_H_ 169 #endif // CC_TREES_TRANSFORM_NODE_H_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_unittest.cc ('k') | cc/trees/transform_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698