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

Unified Diff: cc/layers/layer_impl.h

Issue 1139573004: Reset property tree indices when layer is removed from layer tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use sequence numbers to invalidate property tree indices. Created 5 years, 7 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 9a089a5794c045a1af92dc8ba3fba5d57f654c3f..9f6692bc44081567ec00ce983280bbb7b208a860 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -151,20 +151,15 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
return scroll_children_.get();
}
- void set_transform_tree_index(int index) {
- transform_tree_index_ = index;
- SetNeedsPushProperties();
- }
- void set_clip_tree_index(int index) {
- clip_tree_index_ = index;
- SetNeedsPushProperties();
- }
- void set_opacity_tree_index(int index) {
- opacity_tree_index_ = index;
- SetNeedsPushProperties();
- }
- int clip_tree_index() const { return clip_tree_index_; }
+ void set_property_tree_sequence_number(int sequence_number) {}
+
+ void SetTransformTreeIndex(int index);
int transform_tree_index() const { return transform_tree_index_; }
+
+ void SetClipTreeIndex(int index);
+ int clip_tree_index() const { return clip_tree_index_; }
+
+ void SetOpacityTreeIndex(int index);
int opacity_tree_index() const { return opacity_tree_index_; }
void set_offset_to_transform_parent(const gfx::Vector2dF& offset) {
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698