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()); |
} |