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

Unified Diff: ui/compositor/layer_animator.cc

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 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
Index: ui/compositor/layer_animator.cc
diff --git a/ui/compositor/layer_animator.cc b/ui/compositor/layer_animator.cc
index c58be9c599e9f48262939156614b1ac2b5b35350..a47f4096638544adc1f6bf09de56a82275686a10 100644
--- a/ui/compositor/layer_animator.cc
+++ b/ui/compositor/layer_animator.cc
@@ -166,7 +166,8 @@ void LayerAnimator::DetachLayerAndTimeline(Compositor* compositor) {
void LayerAnimator::AttachLayerToAnimationPlayer(int layer_id) {
// For ui, layer and element ids are equivalent.
- cc::ElementId element_id(layer_id, 0);
+ cc::ElementId element_id;
+ element_id.id = layer_id;
if (!animation_player_->element_id())
animation_player_->AttachElement(element_id);
else

Powered by Google App Engine
This is Rietveld 408576698