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

Unified Diff: cc/layers/layer.h

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/input/scroll_state_data.cc ('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 4c3031947c5112c4a6321c3248af550dde216531..7718e00fd9e66e44de0213c6257a43b558105ff8 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -17,6 +17,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
+#include "cc/animation/element_id.h"
#include "cc/animation/target_property.h"
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
@@ -491,8 +492,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_; }
@@ -628,7 +629,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/input/scroll_state_data.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698