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

Unified Diff: cc/layers/layer.h

Issue 1922393002: CC Animation: Unify ElementId in Blink Compositor Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@player
Patch Set: Remove NextElementId. Created 4 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/cc.gyp ('k') | 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 97e83c339b461fbb9523b05e55835b552d39877a..63e3c1be91b9e5cd2c29ed0f470f169b1a40a3a7 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -26,6 +26,7 @@
#include "cc/layers/layer_position_constraint.h"
#include "cc/layers/paint_properties.h"
#include "cc/output/filter_operations.h"
+#include "cc/trees/element_id.h"
#include "cc/trees/property_tree.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImageFilter.h"
@@ -492,8 +493,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
int num_copy_requests_in_target_subtree();
- void SetElementId(uint64_t id);
- uint64_t element_id() const { return element_id_; }
+ void SetElementId(ElementId id);
+ ElementId element_id() const { return element_id_; }
void SetMutableProperties(uint32_t properties);
uint32_t mutable_properties() const { return mutable_properties_; }
@@ -621,7 +622,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
int clip_tree_index_;
int scroll_tree_index_;
int property_tree_sequence_number_;
- uint64_t element_id_;
+ ElementId element_id_;
uint32_t mutable_properties_;
gfx::Vector2dF offset_to_transform_parent_;
uint32_t main_thread_scrolling_reasons_;
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698