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

Unified Diff: cc/layers/layer.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 | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 56decaa741a2d36d5cf3fdbd56d1fd836be41d91..9c7138e9fdc515040f908c1543a5fa11815813ec 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -476,27 +476,18 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void Set3dSortingContextId(int id);
int sorting_context_id() const { return sorting_context_id_; }
- void set_transform_tree_index(int index) {
- if (transform_tree_index_ == index)
- return;
- transform_tree_index_ = index;
- SetNeedsPushProperties();
- }
- void set_clip_tree_index(int index) {
- if (clip_tree_index_ == index)
- return;
- clip_tree_index_ = index;
- SetNeedsPushProperties();
+ void set_property_tree_sequence_number(int sequence_number) {
+ property_tree_sequence_number_ = sequence_number;
}
- void set_opacity_tree_index(int index) {
- if (opacity_tree_index_ == index)
- return;
- opacity_tree_index_ = index;
- SetNeedsPushProperties();
- }
- int clip_tree_index() const { return clip_tree_index_; }
- int transform_tree_index() const { return transform_tree_index_; }
- int opacity_tree_index() const { return opacity_tree_index_; }
+
+ void SetTransformTreeIndex(int index);
+ int transform_tree_index() const;
+
+ void SetClipTreeIndex(int index);
+ int clip_tree_index() const;
+
+ void SetOpacityTreeIndex(int index);
+ int opacity_tree_index() const;
void set_offset_to_transform_parent(gfx::Vector2dF offset) {
if (offset_to_transform_parent_ == offset)
@@ -709,6 +700,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
int transform_tree_index_;
int opacity_tree_index_;
int clip_tree_index_;
+ int property_tree_sequence_number_;
int num_layer_or_descendants_with_copy_request_;
int num_layer_or_descendants_with_input_handler_;
gfx::Vector2dF offset_to_transform_parent_;
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698