| Index: cc/layers/layer_list_iterator_unittest.cc
|
| diff --git a/cc/layers/layer_list_iterator_unittest.cc b/cc/layers/layer_list_iterator_unittest.cc
|
| index 57796842defb6bbdd35fc03db69f17d53c2a26fc..d69a9ff959cff50b34026ec17fe5b8ed9383ea3b 100644
|
| --- a/cc/layers/layer_list_iterator_unittest.cc
|
| +++ b/cc/layers/layer_list_iterator_unittest.cc
|
| @@ -7,10 +7,10 @@
|
| #include <memory>
|
|
|
| #include "base/containers/adapters.h"
|
| +#include "cc/test/fake_compositor_frame_sink.h"
|
| #include "cc/test/fake_impl_task_runner_provider.h"
|
| #include "cc/test/fake_layer_tree_host.h"
|
| #include "cc/test/fake_layer_tree_host_impl.h"
|
| -#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"
|
| @@ -200,12 +200,12 @@ TEST(LayerListIteratorTest, VerifyTraversalOrderImpl) {
|
| FakeImplTaskRunnerProvider task_runner_provider;
|
| TestSharedBitmapManager shared_bitmap_manager;
|
| TestTaskGraphRunner task_graph_runner;
|
| - std::unique_ptr<OutputSurface> output_surface =
|
| - FakeOutputSurface::CreateDelegating3d();
|
| + std::unique_ptr<CompositorFrameSink> compositor_frame_sink =
|
| + FakeCompositorFrameSink::Create3d();
|
| FakeLayerTreeHostImpl host_impl(&task_runner_provider, &shared_bitmap_manager,
|
| &task_graph_runner);
|
| host_impl.SetVisible(true);
|
| - EXPECT_TRUE(host_impl.InitializeRenderer(output_surface.get()));
|
| + EXPECT_TRUE(host_impl.InitializeRenderer(compositor_frame_sink.get()));
|
|
|
| // This test constructs the following tree.
|
| // 1
|
| @@ -255,12 +255,12 @@ TEST(LayerListIteratorTest, VerifySingleLayerImpl) {
|
| FakeImplTaskRunnerProvider task_runner_provider;
|
| TestSharedBitmapManager shared_bitmap_manager;
|
| TestTaskGraphRunner task_graph_runner;
|
| - std::unique_ptr<OutputSurface> output_surface =
|
| - FakeOutputSurface::CreateDelegating3d();
|
| + std::unique_ptr<CompositorFrameSink> compositor_frame_sink =
|
| + FakeCompositorFrameSink::Create3d();
|
| FakeLayerTreeHostImpl host_impl(&task_runner_provider, &shared_bitmap_manager,
|
| &task_graph_runner);
|
| host_impl.SetVisible(true);
|
| - EXPECT_TRUE(host_impl.InitializeRenderer(output_surface.get()));
|
| + EXPECT_TRUE(host_impl.InitializeRenderer(compositor_frame_sink.get()));
|
|
|
| // This test constructs a tree consisting of a single layer.
|
| std::unique_ptr<LayerImpl> layer1 =
|
| @@ -292,12 +292,12 @@ TEST(LayerListReverseIteratorTest, VerifyTraversalOrderImpl) {
|
| FakeImplTaskRunnerProvider task_runner_provider;
|
| TestSharedBitmapManager shared_bitmap_manager;
|
| TestTaskGraphRunner task_graph_runner;
|
| - std::unique_ptr<OutputSurface> output_surface =
|
| - FakeOutputSurface::CreateDelegating3d();
|
| + std::unique_ptr<CompositorFrameSink> compositor_frame_sink =
|
| + FakeCompositorFrameSink::Create3d();
|
| FakeLayerTreeHostImpl host_impl(&task_runner_provider, &shared_bitmap_manager,
|
| &task_graph_runner);
|
| host_impl.SetVisible(true);
|
| - EXPECT_TRUE(host_impl.InitializeRenderer(output_surface.get()));
|
| + EXPECT_TRUE(host_impl.InitializeRenderer(compositor_frame_sink.get()));
|
|
|
| // This test constructs the following tree.
|
| // 1
|
| @@ -349,12 +349,12 @@ TEST(LayerListReverseIteratorTest, VerifySingleLayerImpl) {
|
| FakeImplTaskRunnerProvider task_runner_provider;
|
| TestSharedBitmapManager shared_bitmap_manager;
|
| TestTaskGraphRunner task_graph_runner;
|
| - std::unique_ptr<OutputSurface> output_surface =
|
| - FakeOutputSurface::CreateDelegating3d();
|
| + std::unique_ptr<CompositorFrameSink> compositor_frame_sink =
|
| + FakeCompositorFrameSink::Create3d();
|
| FakeLayerTreeHostImpl host_impl(&task_runner_provider, &shared_bitmap_manager,
|
| &task_graph_runner);
|
| host_impl.SetVisible(true);
|
| - EXPECT_TRUE(host_impl.InitializeRenderer(output_surface.get()));
|
| + EXPECT_TRUE(host_impl.InitializeRenderer(compositor_frame_sink.get()));
|
|
|
| // This test constructs a tree consisting of a single layer.
|
| std::unique_ptr<LayerImpl> layer1 =
|
|
|