Index: cc/layers/heads_up_display_layer_impl_unittest.cc |
diff --git a/cc/layers/heads_up_display_layer_impl_unittest.cc b/cc/layers/heads_up_display_layer_impl_unittest.cc |
index 15357873c4e8082966f5c92557e30e149c376256..e104c33d061fc6ae873c8b70971bf16ce6cb8c28 100644 |
--- a/cc/layers/heads_up_display_layer_impl_unittest.cc |
+++ b/cc/layers/heads_up_display_layer_impl_unittest.cc |
@@ -11,7 +11,6 @@ |
#include "cc/test/fake_output_surface.h" |
#include "cc/test/test_shared_bitmap_manager.h" |
#include "cc/test/test_task_graph_runner.h" |
-#include "cc/trees/layer_tree_impl.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace cc { |
@@ -47,19 +46,16 @@ |
HeadsUpDisplayLayerImpl::Create(host_impl.pending_tree(), 1); |
layer->SetBounds(gfx::Size(100, 100)); |
- HeadsUpDisplayLayerImpl* layer_ptr = layer.get(); |
- |
- host_impl.pending_tree()->SetRootLayer(std::move(layer)); |
- host_impl.pending_tree()->BuildPropertyTreesForTesting(); |
- |
// Check regular hardware draw is ok. |
- CheckDrawLayer(layer_ptr, host_impl.resource_provider(), DRAW_MODE_HARDWARE); |
+ CheckDrawLayer( |
+ layer.get(), host_impl.resource_provider(), DRAW_MODE_HARDWARE); |
// Simulate a resource loss on transitioning to resourceless software mode. |
- layer_ptr->ReleaseResources(); |
+ layer->ReleaseResources(); |
// Should skip resourceless software draw and not crash in UpdateHudTexture. |
- CheckDrawLayer(layer_ptr, host_impl.resource_provider(), |
+ CheckDrawLayer(layer.get(), |
+ host_impl.resource_provider(), |
DRAW_MODE_RESOURCELESS_SOFTWARE); |
} |