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

Unified Diff: cc/layers/picture_layer_unittest.cc

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index b8acc2e865ab691eaa0069697dbf9f49928cf6ec..a9188b25be16efa60f284cc7c4105fcf2a6216f0 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -16,10 +16,10 @@
#include "cc/playback/display_item_list_settings.h"
#include "cc/proto/layer.pb.h"
#include "cc/test/fake_client_picture_cache.h"
+#include "cc/test/fake_compositor_frame_sink.h"
#include "cc/test/fake_engine_picture_cache.h"
#include "cc/test/fake_image_serialization_processor.h"
#include "cc/test/fake_layer_tree_host.h"
-#include "cc/test/fake_output_surface.h"
#include "cc/test/fake_picture_layer.h"
#include "cc/test/fake_picture_layer_impl.h"
#include "cc/test/fake_proxy.h"
@@ -253,12 +253,12 @@ TEST(PictureLayerTest, NoTilesIfEmptyBounds) {
FakeImplTaskRunnerProvider impl_task_runner_provider;
TestSharedBitmapManager shared_bitmap_manager;
- std::unique_ptr<FakeOutputSurface> output_surface =
- FakeOutputSurface::CreateDelegatingSoftware();
+ std::unique_ptr<FakeCompositorFrameSink> compositor_frame_sink =
+ FakeCompositorFrameSink::CreateSoftware();
FakeLayerTreeHostImpl host_impl(LayerTreeSettings(),
&impl_task_runner_provider,
&shared_bitmap_manager, &task_graph_runner);
- host_impl.InitializeRenderer(output_surface.get());
+ host_impl.InitializeRenderer(compositor_frame_sink.get());
host_impl.CreatePendingTree();
std::unique_ptr<FakePictureLayerImpl> layer_impl =
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1);
@@ -294,15 +294,15 @@ TEST(PictureLayerTest, InvalidateRasterAfterUpdate) {
host->CommitComplete();
FakeImplTaskRunnerProvider impl_task_runner_provider;
TestSharedBitmapManager shared_bitmap_manager;
- std::unique_ptr<OutputSurface> output_surface(
- FakeOutputSurface::CreateDelegating3d());
+ std::unique_ptr<CompositorFrameSink> compositor_frame_sink(
+ FakeCompositorFrameSink::Create3d());
LayerTreeSettings layer_tree_settings = LayerTreeSettingsForTesting();
layer_tree_settings.image_decode_tasks_enabled = true;
FakeLayerTreeHostImpl host_impl(layer_tree_settings,
&impl_task_runner_provider,
&shared_bitmap_manager, &task_graph_runner);
host_impl.SetVisible(true);
- host_impl.InitializeRenderer(output_surface.get());
+ host_impl.InitializeRenderer(compositor_frame_sink.get());
host_impl.CreatePendingTree();
host_impl.pending_tree()->SetRootLayerForTesting(
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1));
@@ -338,15 +338,15 @@ TEST(PictureLayerTest, InvalidateRasterWithoutUpdate) {
host->CommitComplete();
FakeImplTaskRunnerProvider impl_task_runner_provider;
TestSharedBitmapManager shared_bitmap_manager;
- std::unique_ptr<OutputSurface> output_surface(
- FakeOutputSurface::CreateDelegating3d());
+ std::unique_ptr<CompositorFrameSink> compositor_frame_sink(
+ FakeCompositorFrameSink::Create3d());
LayerTreeSettings layer_tree_settings = LayerTreeSettingsForTesting();
layer_tree_settings.image_decode_tasks_enabled = true;
FakeLayerTreeHostImpl host_impl(layer_tree_settings,
&impl_task_runner_provider,
&shared_bitmap_manager, &task_graph_runner);
host_impl.SetVisible(true);
- host_impl.InitializeRenderer(output_surface.get());
+ host_impl.InitializeRenderer(compositor_frame_sink.get());
host_impl.CreatePendingTree();
host_impl.pending_tree()->SetRootLayerForTesting(
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1));
@@ -386,15 +386,15 @@ TEST(PictureLayerTest, ClearVisibleRectWhenNoTiling) {
FakeImplTaskRunnerProvider impl_task_runner_provider;
TestSharedBitmapManager shared_bitmap_manager;
- std::unique_ptr<OutputSurface> output_surface(
- FakeOutputSurface::CreateDelegating3d());
+ std::unique_ptr<CompositorFrameSink> compositor_frame_sink(
+ FakeCompositorFrameSink::Create3d());
LayerTreeSettings layer_tree_settings = LayerTreeSettingsForTesting();
layer_tree_settings.image_decode_tasks_enabled = true;
FakeLayerTreeHostImpl host_impl(layer_tree_settings,
&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()));
host_impl.CreatePendingTree();
host_impl.pending_tree()->SetRootLayerForTesting(
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698