| 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_SCROLL_NODE_H_ | 5 #ifndef CC_TREES_SCROLL_NODE_H_ |
| 6 #define CC_TREES_SCROLL_NODE_H_ | 6 #define CC_TREES_SCROLL_NODE_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/filter_operations.h" | 9 #include "cc/output/filter_operations.h" |
| 10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // This offset is used when |scrollable| is false and there isn't a transform | 51 // This offset is used when |scrollable| is false and there isn't a transform |
| 52 // node already present that covers this offset. | 52 // node already present that covers this offset. |
| 53 gfx::Vector2dF offset_to_transform_parent; | 53 gfx::Vector2dF offset_to_transform_parent; |
| 54 | 54 |
| 55 bool should_flatten; | 55 bool should_flatten; |
| 56 bool user_scrollable_horizontal; | 56 bool user_scrollable_horizontal; |
| 57 bool user_scrollable_vertical; | 57 bool user_scrollable_vertical; |
| 58 ElementId element_id; | 58 ElementId element_id; |
| 59 int transform_id; | 59 int transform_id; |
| 60 // Number of drawn layers pointing to this node or any of its descendants. | |
| 61 int num_drawn_descendants; | |
| 62 | 60 |
| 63 bool operator==(const ScrollNode& other) const; | 61 bool operator==(const ScrollNode& other) const; |
| 64 void AsValueInto(base::trace_event::TracedValue* value) const; | 62 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace cc | 65 } // namespace cc |
| 68 | 66 |
| 69 #endif // CC_TREES_SCROLL_NODE_H_ | 67 #endif // CC_TREES_SCROLL_NODE_H_ |
| OLD | NEW |