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

Unified Diff: cc/layers/layer.h

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add unit test for impl side sticky position update. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 72399af2f0a5a8547815898d36105463d32947db..582e33fcfa1fa67620c9b954d51f255b3707ca05 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -191,6 +191,12 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
return inputs_.position_constraint;
}
+ void SetStickyPositionConstraint(
+ const LayerStickyPositionConstraint& constraint);
+ const LayerStickyPositionConstraint& sticky_position_constraint() const {
+ return inputs_.sticky_position_constraint;
+ }
+
void SetTransform(const gfx::Transform& transform);
const gfx::Transform& transform() const { return inputs_.transform; }
@@ -675,6 +681,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
bool is_container_for_fixed_position_layers : 1;
LayerPositionConstraint position_constraint;
+ LayerStickyPositionConstraint sticky_position_constraint;
+
ElementId element_id;
uint32_t mutable_properties;

Powered by Google App Engine
This is Rietveld 408576698