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

Unified Diff: cc/test/test_layer_tree_host_base.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/test/test_layer_tree_host_base.h ('k') | cc/tiles/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_layer_tree_host_base.cc
diff --git a/cc/test/test_layer_tree_host_base.cc b/cc/test/test_layer_tree_host_base.cc
index 92b288890687c117abf783d9d3da2cfaf3f0235c..bcb20a4d61c4fc8c98df8afe0dbb624e39d916f3 100644
--- a/cc/test/test_layer_tree_host_base.cc
+++ b/cc/test/test_layer_tree_host_base.cc
@@ -4,7 +4,7 @@
#include "cc/test/test_layer_tree_host_base.h"
-#include "cc/test/fake_output_surface.h"
+#include "cc/test/fake_compositor_frame_sink.h"
#include "cc/test/fake_raster_source.h"
#include "cc/trees/layer_tree_impl.h"
@@ -21,7 +21,7 @@ TestLayerTreeHostBase::TestLayerTreeHostBase()
TestLayerTreeHostBase::~TestLayerTreeHostBase() = default;
void TestLayerTreeHostBase::SetUp() {
- output_surface_ = CreateOutputSurface();
+ compositor_frame_sink_ = CreateCompositorFrameSink();
task_graph_runner_ = CreateTaskGraphRunner();
host_impl_ = CreateHostImpl(CreateSettings(), &task_runner_provider_,
&shared_bitmap_manager_, task_graph_runner_.get(),
@@ -37,8 +37,9 @@ LayerTreeSettings TestLayerTreeHostBase::CreateSettings() {
return settings;
}
-std::unique_ptr<OutputSurface> TestLayerTreeHostBase::CreateOutputSurface() {
- return FakeOutputSurface::CreateDelegating3d();
+std::unique_ptr<CompositorFrameSink>
+TestLayerTreeHostBase::CreateCompositorFrameSink() {
+ return FakeCompositorFrameSink::Create3d();
}
std::unique_ptr<FakeLayerTreeHostImpl> TestLayerTreeHostBase::CreateHostImpl(
@@ -59,15 +60,15 @@ TestLayerTreeHostBase::CreateTaskGraphRunner() {
void TestLayerTreeHostBase::InitializeRenderer() {
host_impl_->SetVisible(true);
- host_impl_->InitializeRenderer(output_surface_.get());
+ host_impl_->InitializeRenderer(compositor_frame_sink_.get());
}
-void TestLayerTreeHostBase::ResetOutputSurface(
- std::unique_ptr<OutputSurface> output_surface) {
- host_impl()->DidLoseOutputSurface();
+void TestLayerTreeHostBase::ResetCompositorFrameSink(
+ std::unique_ptr<CompositorFrameSink> compositor_frame_sink) {
+ host_impl()->DidLoseCompositorFrameSink();
host_impl()->SetVisible(true);
- host_impl()->InitializeRenderer(output_surface.get());
- output_surface_ = std::move(output_surface);
+ host_impl()->InitializeRenderer(compositor_frame_sink.get());
+ compositor_frame_sink_ = std::move(compositor_frame_sink);
}
std::unique_ptr<FakeLayerTreeHostImpl> TestLayerTreeHostBase::TakeHostImpl() {
« no previous file with comments | « cc/test/test_layer_tree_host_base.h ('k') | cc/tiles/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698