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

Unified Diff: cc/trees/layer_tree_host_unittest_animation.cc

Issue 1801853002: Transfer LayerImpl ownership to LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more asan. Created 4 years, 9 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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_animation.cc
diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc
index 819571471be0b8783a7643f35e4af0c72b1072f3..b8a63e3522ea0779a43342e9bcbe57fbf3d5b991 100644
--- a/cc/trees/layer_tree_host_unittest_animation.cc
+++ b/cc/trees/layer_tree_host_unittest_animation.cc
@@ -834,7 +834,7 @@ class LayerTreeHostAnimationTestScrollOffsetAnimationRemoval
timeline_impl->GetPlayerById(player_child_id_);
LayerImpl* scroll_layer_impl =
- host_impl->active_tree()->root_layer()->children()[0].get();
+ host_impl->active_tree()->root_layer()->children()[0];
Animation* animation = player_impl->element_animations()
->layer_animation_controller()
->GetAnimation(TargetProperty::SCROLL_OFFSET);
@@ -857,7 +857,7 @@ class LayerTreeHostAnimationTestScrollOffsetAnimationRemoval
if (host_impl->pending_tree()->source_frame_number() != 1)
return;
LayerImpl* scroll_layer_impl =
- host_impl->pending_tree()->root_layer()->children()[0].get();
+ host_impl->pending_tree()->root_layer()->children()[0];
EXPECT_EQ(final_postion_, scroll_layer_impl->CurrentScrollOffset());
}
@@ -865,7 +865,7 @@ class LayerTreeHostAnimationTestScrollOffsetAnimationRemoval
if (host_impl->active_tree()->source_frame_number() != 1)
return;
LayerImpl* scroll_layer_impl =
- host_impl->active_tree()->root_layer()->children()[0].get();
+ host_impl->active_tree()->root_layer()->children()[0];
EXPECT_EQ(final_postion_, scroll_layer_impl->CurrentScrollOffset());
EndTest();
}
@@ -1030,7 +1030,7 @@ class LayerTreeHostAnimationTestPendingTreeAnimatesFirstCommit
player_impl->element_animations()->layer_animation_controller();
LayerImpl* root = host_impl->sync_tree()->root_layer();
- LayerImpl* child = root->children()[0].get();
+ LayerImpl* child = root->children()[0];
Animation* animation =
controller_impl->GetAnimation(TargetProperty::TRANSFORM);
@@ -1269,7 +1269,7 @@ class LayerTreeHostAnimationTestRemoveAnimation
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
LayerImpl* root = host_impl->active_tree()->root_layer();
- LayerImpl* child = root->children()[0].get();
+ LayerImpl* child = root->children()[0];
switch (host_impl->active_tree()->source_frame_number()) {
case 0:
// No animation yet.
@@ -1335,7 +1335,7 @@ class LayerTreeHostAnimationTestIsAnimating
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
LayerImpl* root = host_impl->sync_tree()->root_layer();
- LayerImpl* child = root->children()[0].get();
+ LayerImpl* child = root->children()[0];
switch (host_impl->sync_tree()->source_frame_number()) {
case 0:
// No animation yet.
@@ -1356,7 +1356,7 @@ class LayerTreeHostAnimationTestIsAnimating
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
LayerImpl* root = host_impl->active_tree()->root_layer();
- LayerImpl* child = root->children()[0].get();
+ LayerImpl* child = root->children()[0];
switch (host_impl->active_tree()->source_frame_number()) {
case 0:
// No animation yet.
@@ -1430,7 +1430,7 @@ class LayerTreeHostAnimationTestAnimationFinishesDuringCommit
gfx::Transform expected_transform;
expected_transform.Translate(5.f, 5.f);
LayerImpl* layer_impl =
- host_impl->sync_tree()->root_layer()->children()[0].get();
+ host_impl->sync_tree()->root_layer()->children()[0];
EXPECT_EQ(expected_transform, layer_impl->DrawTransform());
EndTest();
break;
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698