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

Unified Diff: cc/animation/animation_host_perftest.cc

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Let CC clients generate their own ElementIds locally. 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: cc/animation/animation_host_perftest.cc
diff --git a/cc/animation/animation_host_perftest.cc b/cc/animation/animation_host_perftest.cc
index 5003533d9bb06db0e2bca7b3be9d9250af110f29..e55b20015446482ce78048695ec6b7c49df1d28f 100644
--- a/cc/animation/animation_host_perftest.cc
+++ b/cc/animation/animation_host_perftest.cc
@@ -61,6 +61,7 @@ class AnimationHostPerfTest : public testing::Test {
for (int i = 0; i < num_players; ++i) {
scoped_refptr<Layer> layer = Layer::Create();
+ layer->SetElementId(NextTestElementId());
root_layer_->AddChild(layer);
scoped_refptr<AnimationPlayer> player =
@@ -68,7 +69,7 @@ class AnimationHostPerfTest : public testing::Test {
last_player_id = AnimationIdProvider::NextPlayerId();
timeline->AttachPlayer(player);
- player->AttachElement(layer->id());
+ player->AttachElement(layer->element_id());
EXPECT_TRUE(player->element_animations());
}

Powered by Google App Engine
This is Rietveld 408576698