OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 const LayerPositionConstraint& position_constraint() const { | 167 const LayerPositionConstraint& position_constraint() const { |
168 return inputs_.position_constraint; | 168 return inputs_.position_constraint; |
169 } | 169 } |
170 | 170 |
171 void SetStickyPositionConstraint( | 171 void SetStickyPositionConstraint( |
172 const LayerStickyPositionConstraint& constraint); | 172 const LayerStickyPositionConstraint& constraint); |
173 const LayerStickyPositionConstraint& sticky_position_constraint() const { | 173 const LayerStickyPositionConstraint& sticky_position_constraint() const { |
174 return inputs_.sticky_position_constraint; | 174 return inputs_.sticky_position_constraint; |
175 } | 175 } |
176 | 176 |
| 177 void SetStickyMainThreadOffset(const gfx::Size& offset); |
| 178 const gfx::Size sticky_main_thread_offset() const { |
| 179 return inputs_.sticky_main_thread_offset; |
| 180 } |
| 181 |
177 void SetTransform(const gfx::Transform& transform); | 182 void SetTransform(const gfx::Transform& transform); |
178 const gfx::Transform& transform() const { return inputs_.transform; } | 183 const gfx::Transform& transform() const { return inputs_.transform; } |
179 | 184 |
180 void SetTransformOrigin(const gfx::Point3F&); | 185 void SetTransformOrigin(const gfx::Point3F&); |
181 gfx::Point3F transform_origin() const { return inputs_.transform_origin; } | 186 gfx::Point3F transform_origin() const { return inputs_.transform_origin; } |
182 | 187 |
183 void SetScrollParent(Layer* parent); | 188 void SetScrollParent(Layer* parent); |
184 | 189 |
185 Layer* scroll_parent() { return inputs_.scroll_parent; } | 190 Layer* scroll_parent() { return inputs_.scroll_parent; } |
186 | 191 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 575 |
571 uint32_t main_thread_scrolling_reasons; | 576 uint32_t main_thread_scrolling_reasons; |
572 Region non_fast_scrollable_region; | 577 Region non_fast_scrollable_region; |
573 | 578 |
574 Region touch_event_handler_region; | 579 Region touch_event_handler_region; |
575 | 580 |
576 bool is_container_for_fixed_position_layers : 1; | 581 bool is_container_for_fixed_position_layers : 1; |
577 LayerPositionConstraint position_constraint; | 582 LayerPositionConstraint position_constraint; |
578 | 583 |
579 LayerStickyPositionConstraint sticky_position_constraint; | 584 LayerStickyPositionConstraint sticky_position_constraint; |
| 585 gfx::Size sticky_main_thread_offset; |
580 | 586 |
581 ElementId element_id; | 587 ElementId element_id; |
582 | 588 |
583 uint32_t mutable_properties; | 589 uint32_t mutable_properties; |
584 | 590 |
585 Layer* scroll_parent; | 591 Layer* scroll_parent; |
586 Layer* clip_parent; | 592 Layer* clip_parent; |
587 | 593 |
588 bool has_will_change_transform_hint : 1; | 594 bool has_will_change_transform_hint : 1; |
589 | 595 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 // These all act like draw properties, so don't need push properties. | 636 // These all act like draw properties, so don't need push properties. |
631 gfx::Rect visible_layer_rect_; | 637 gfx::Rect visible_layer_rect_; |
632 size_t num_unclipped_descendants_; | 638 size_t num_unclipped_descendants_; |
633 | 639 |
634 DISALLOW_COPY_AND_ASSIGN(Layer); | 640 DISALLOW_COPY_AND_ASSIGN(Layer); |
635 }; | 641 }; |
636 | 642 |
637 } // namespace cc | 643 } // namespace cc |
638 | 644 |
639 #endif // CC_LAYERS_LAYER_H_ | 645 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |