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

Unified Diff: cc/layers/layer.h

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 2a5e52743a9d7a1eb505fdbf48d49697c0207e5d..760fcbd4468fe6f8eb5a910cfeaae57f10f26908 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -542,6 +542,12 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
return num_layer_or_descendants_with_copy_request_;
}
+ void SetElementId(uint64_t id);
+ uint64_t element_id() const { return element_id_; }
+
+ void SetMutableProperties(uint32_t properties);
+ uint32_t mutable_properties() const { return mutable_properties_; }
+
void set_visited(bool visited);
bool visited();
void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn);
@@ -707,6 +713,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
int clip_tree_index_;
int property_tree_sequence_number_;
int num_layer_or_descendants_with_copy_request_;
+ uint64_t element_id_;
+ uint32_t mutable_properties_;
gfx::Vector2dF offset_to_transform_parent_;
bool should_flatten_transform_from_property_tree_ : 1;
bool should_scroll_on_main_thread_ : 1;

Powered by Google App Engine
This is Rietveld 408576698