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

Unified Diff: ui/compositor/layer.cc

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index e23e87fb63b223517a354fa7034eaab5a434ba61..15daf2dd0e46aed5e8eb57b7f4e7c033b276cc38 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -512,6 +512,7 @@ void Layer::SwitchToLayer(scoped_refptr<cc::Layer> new_layer) {
cc_layer_->SetContentsOpaque(fills_bounds_opaquely_);
cc_layer_->SetIsDrawable(type_ != LAYER_NOT_DRAWN);
cc_layer_->SetHideLayerAndSubtree(!visible_);
+ cc_layer_->SetElementId(cc::ElementId(cc_layer_->id()));
SetLayerFilters();
SetLayerBackgroundFilters();
@@ -988,6 +989,7 @@ void Layer::CreateCcLayer() {
cc_layer_->SetContentsOpaque(true);
cc_layer_->SetIsDrawable(type_ != LAYER_NOT_DRAWN);
cc_layer_->SetLayerClient(this);
+ cc_layer_->SetElementId(cc::ElementId(cc_layer_->id()));
RecomputePosition();
}

Powered by Google App Engine
This is Rietveld 408576698