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

Unified Diff: cc/animation/animation_host_perftest.cc

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/animation/animation_host.cc ('k') | cc/animation/animation_player.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_host_perftest.cc
diff --git a/cc/animation/animation_host_perftest.cc b/cc/animation/animation_host_perftest.cc
index 32b999b69f5b5ee9e9550d17a78c52a7fdc64146..a478a220a4713a4c93474c2e9efe3a9ba7ff953c 100644
--- a/cc/animation/animation_host_perftest.cc
+++ b/cc/animation/animation_host_perftest.cc
@@ -62,13 +62,14 @@ class AnimationHostPerfTest : public testing::Test {
for (int i = 0; i < num_players; ++i) {
scoped_refptr<Layer> layer = Layer::Create();
root_layer_->AddChild(layer);
+ layer->SetElementId(LayerIdToElementIdForTesting(layer->id()));
scoped_refptr<AnimationPlayer> player =
AnimationPlayer::Create(last_player_id);
last_player_id = AnimationIdProvider::NextPlayerId();
timeline->AttachPlayer(player);
- player->AttachElement(layer->id());
+ player->AttachElement(layer->element_id());
EXPECT_TRUE(player->element_animations());
}
« no previous file with comments | « cc/animation/animation_host.cc ('k') | cc/animation/animation_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698