| OLD | NEW |
| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 115 // TODO(vollick): will be moved when accelerated effects are implemented. | 115 // TODO(vollick): will be moved when accelerated effects are implemented. |
| 116 float post_local_scale_factor; | 116 float post_local_scale_factor; |
| 117 | 117 |
| 118 // TODO(vollick): will be moved when accelerated effects are implemented. | 118 // TODO(vollick): will be moved when accelerated effects are implemented. |
| 119 gfx::ScrollOffset scroll_offset; | 119 gfx::ScrollOffset scroll_offset_with_overscroll; |
| 120 | 120 |
| 121 // This value stores the snapped amount whenever we snap. If the snap is due | 121 // This value stores the snapped amount whenever we snap. If the snap is due |
| 122 // to a scroll, we need it to calculate fixed-pos elements adjustment, even | 122 // to a scroll, we need it to calculate fixed-pos elements adjustment, even |
| 123 // otherwise we may need it to undo the snapping next frame. | 123 // otherwise we may need it to undo the snapping next frame. |
| 124 gfx::Vector2dF snap_amount; | 124 gfx::Vector2dF snap_amount; |
| 125 | 125 |
| 126 // TODO(vollick): will be moved when accelerated effects are implemented. | 126 // TODO(vollick): will be moved when accelerated effects are implemented. |
| 127 gfx::Vector2dF source_offset; | 127 gfx::Vector2dF source_offset; |
| 128 gfx::Vector2dF source_to_parent; | 128 gfx::Vector2dF source_to_parent; |
| 129 | 129 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |