| Index: cc/test/test_compositor_frame_sink.cc
|
| diff --git a/cc/test/test_compositor_frame_sink.cc b/cc/test/test_compositor_frame_sink.cc
|
| index 9c7cdb0e664dfd73c755dbb7a5070863d357e9c8..b7cf82c9df1de806ff3d47686428b776b0f6ddc6 100644
|
| --- a/cc/test/test_compositor_frame_sink.cc
|
| +++ b/cc/test/test_compositor_frame_sink.cc
|
| @@ -111,8 +111,6 @@ bool TestCompositorFrameSink::BindToClient(CompositorFrameSinkClient* client) {
|
| void TestCompositorFrameSink::DetachFromClient() {
|
| // Some tests make BindToClient fail on purpose. ^__^
|
| if (bound_) {
|
| - if (delegated_local_frame_id_.is_valid())
|
| - surface_factory_->Destroy(delegated_local_frame_id_);
|
| surface_manager_->UnregisterSurfaceFactoryClient(frame_sink_id_);
|
| surface_manager_->InvalidateFrameSinkId(frame_sink_id_);
|
| display_ = nullptr;
|
| @@ -130,7 +128,6 @@ void TestCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
|
|
|
| if (!delegated_local_frame_id_.is_valid()) {
|
| delegated_local_frame_id_ = surface_id_allocator_->GenerateId();
|
| - surface_factory_->Create(delegated_local_frame_id_);
|
| }
|
| display_->SetSurfaceId(SurfaceId(frame_sink_id_, delegated_local_frame_id_),
|
| frame.metadata.device_scale_factor);
|
|
|