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

Unified Diff: cc/layers/layer_impl.h

Issue 1626513003: Add ScrollTree builder and unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename other_criteria, remove is_root in GetScrollParent and fixed a previous mistake in unit test. Created 4 years, 11 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_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 12ee4c0b7e76227d49a67e3120bf9cf1e5fb314b..0b0e7730ecb08080cec2073b7aed7f1e144ebf93 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -170,6 +170,9 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
void SetEffectTreeIndex(int index);
int effect_tree_index() const { return effect_tree_index_; }
+ void SetScrollTreeIndex(int index);
+ int scroll_tree_index() const { return scroll_tree_index_; }
+
void set_offset_to_transform_parent(const gfx::Vector2dF& offset) {
offset_to_transform_parent_ = offset;
SetNeedsPushProperties();
@@ -834,6 +837,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
int transform_tree_index_;
int effect_tree_index_;
int clip_tree_index_;
+ int scroll_tree_index_;
// The global depth value of the center of the layer. This value is used
// to sort layers from back to front.

Powered by Google App Engine
This is Rietveld 408576698