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

Side by Side Diff: cc/layers/layer.h

Issue 2929873002: Shifting layer position for sticky element to avoid passing unnessary variable to cc (Closed)
Patch Set: Bug fix Created 3 years, 6 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/blink/web_layer_impl.cc ('k') | cc/layers/layer.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 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
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 SetOffsetForStickyPositionFromMainThread(const gfx::Size& offset);
178 const gfx::Size offset_for_sticky_position_from_main_thread() const {
179 return inputs_.offset_for_sticky_position_from_main_thread;
180 }
181
182 void SetTransform(const gfx::Transform& transform); 177 void SetTransform(const gfx::Transform& transform);
183 const gfx::Transform& transform() const { return inputs_.transform; } 178 const gfx::Transform& transform() const { return inputs_.transform; }
184 179
185 void SetTransformOrigin(const gfx::Point3F&); 180 void SetTransformOrigin(const gfx::Point3F&);
186 gfx::Point3F transform_origin() const { return inputs_.transform_origin; } 181 gfx::Point3F transform_origin() const { return inputs_.transform_origin; }
187 182
188 void SetScrollParent(Layer* parent); 183 void SetScrollParent(Layer* parent);
189 184
190 Layer* scroll_parent() { return inputs_.scroll_parent; } 185 Layer* scroll_parent() { return inputs_.scroll_parent; }
191 186
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 580
586 uint32_t main_thread_scrolling_reasons; 581 uint32_t main_thread_scrolling_reasons;
587 Region non_fast_scrollable_region; 582 Region non_fast_scrollable_region;
588 583
589 Region touch_event_handler_region; 584 Region touch_event_handler_region;
590 585
591 bool is_container_for_fixed_position_layers : 1; 586 bool is_container_for_fixed_position_layers : 1;
592 LayerPositionConstraint position_constraint; 587 LayerPositionConstraint position_constraint;
593 588
594 LayerStickyPositionConstraint sticky_position_constraint; 589 LayerStickyPositionConstraint sticky_position_constraint;
595 gfx::Size offset_for_sticky_position_from_main_thread;
596 590
597 ElementId element_id; 591 ElementId element_id;
598 592
599 uint32_t mutable_properties; 593 uint32_t mutable_properties;
600 594
601 Layer* scroll_parent; 595 Layer* scroll_parent;
602 Layer* clip_parent; 596 Layer* clip_parent;
603 597
604 bool has_will_change_transform_hint : 1; 598 bool has_will_change_transform_hint : 1;
605 599
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // These all act like draw properties, so don't need push properties. 640 // These all act like draw properties, so don't need push properties.
647 gfx::Rect visible_layer_rect_; 641 gfx::Rect visible_layer_rect_;
648 size_t num_unclipped_descendants_; 642 size_t num_unclipped_descendants_;
649 643
650 DISALLOW_COPY_AND_ASSIGN(Layer); 644 DISALLOW_COPY_AND_ASSIGN(Layer);
651 }; 645 };
652 646
653 } // namespace cc 647 } // namespace cc
654 648
655 #endif // CC_LAYERS_LAYER_H_ 649 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698