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

Unified Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/trees/layer_tree_host_unittest_context.cc
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index 74b225e8725a261801f66400993612d5927bd2f0..3bb21701a7667a313fcdbaf90591385d824918c5 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -648,7 +648,7 @@ class LayerTreeHostContextTestLostContextSucceedsWithContent
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
FakePictureLayerImpl* picture_impl = static_cast<FakePictureLayerImpl*>(
- host_impl->active_tree()->root_layer()->children()[0]);
+ host_impl->active_tree()->root_layer()->children()[0].get());
EXPECT_TRUE(picture_impl->HighResTiling()
->TileAt(0, 0)
->draw_info()
@@ -857,9 +857,9 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
root_picture = static_cast<FakePictureLayerImpl*>(
host_impl->active_tree()->root_layer());
child_picture =
- static_cast<FakePictureLayerImpl*>(root_picture->children()[0]);
+ static_cast<FakePictureLayerImpl*>(root_picture->children()[0].get());
grandchild_picture =
- static_cast<FakePictureLayerImpl*>(child_picture->children()[0]);
+ static_cast<FakePictureLayerImpl*>(child_picture->children()[0].get());
++num_commits_;
switch (num_commits_) {
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation_timelines.cc ('k') | cc/trees/layer_tree_host_unittest_copyrequest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698