Index: cc/test/test_delegating_output_surface.cc |
diff --git a/cc/test/test_delegating_output_surface.cc b/cc/test/test_delegating_output_surface.cc |
index 1865762e7a245b6c216469dc7e4d4549f16a5b85..06d3196c28c113da3ec00967263a4b4cd6f6c5b0 100644 |
--- a/cc/test/test_delegating_output_surface.cc |
+++ b/cc/test/test_delegating_output_surface.cc |
@@ -25,7 +25,9 @@ TestDelegatingOutputSurface::TestDelegatingOutputSurface( |
nullptr), |
surface_manager_(new SurfaceManager), |
surface_id_allocator_(new SurfaceIdAllocator(kCompositorClientId)), |
- surface_factory_(new SurfaceFactory(surface_manager_.get(), this)), |
+ surface_factory_(new SurfaceFactory(kCompositorClientId, |
+ surface_manager_.get(), |
+ this)), |
display_(std::move(display)), |
weak_ptrs_(this) { |
CHECK(display_); |
@@ -33,8 +35,6 @@ TestDelegatingOutputSurface::TestDelegatingOutputSurface( |
capabilities_.can_force_reclaim_resources = allow_force_reclaim_resources; |
capabilities_.delegated_sync_points_required = |
!context_shared_with_compositor; |
- |
- surface_id_allocator_->RegisterSurfaceClientId(surface_manager_.get()); |
} |
TestDelegatingOutputSurface::~TestDelegatingOutputSurface() {} |
@@ -50,8 +50,6 @@ bool TestDelegatingOutputSurface::BindToClient(OutputSurfaceClient* client) { |
if (!capabilities_.delegated_sync_points_required && context_provider()) |
context_provider()->SetLostContextCallback(base::Closure()); |
- surface_manager_->RegisterSurfaceFactoryClient( |
- surface_id_allocator_->client_id(), this); |
display_->Initialize(&display_client_, surface_manager_.get(), |
surface_id_allocator_->client_id()); |
return true; |
@@ -60,8 +58,6 @@ bool TestDelegatingOutputSurface::BindToClient(OutputSurfaceClient* client) { |
void TestDelegatingOutputSurface::DetachFromClient() { |
if (!delegated_surface_id_.is_null()) |
surface_factory_->Destroy(delegated_surface_id_); |
- surface_manager_->UnregisterSurfaceFactoryClient( |
- surface_id_allocator_->client_id()); |
display_ = nullptr; |
surface_factory_ = nullptr; |