Index: cc/test/pixel_test_delegating_output_surface.cc |
diff --git a/cc/test/pixel_test_delegating_output_surface.cc b/cc/test/pixel_test_delegating_output_surface.cc |
index d38b19c0de604b1fe89da130a98ff9619cd776d1..6b797428a11c969b236105c07860bc33bf9e691c 100644 |
--- a/cc/test/pixel_test_delegating_output_surface.cc |
+++ b/cc/test/pixel_test_delegating_output_surface.cc |
@@ -120,7 +120,8 @@ void PixelTestDelegatingOutputSurface::DetachFromClient() { |
OutputSurface::DetachFromClient(); |
} |
-void PixelTestDelegatingOutputSurface::SwapBuffers(CompositorFrame* frame) { |
+void PixelTestDelegatingOutputSurface::SwapBuffers( |
+ std::unique_ptr<CompositorFrame> frame) { |
client_->DidSwapBuffers(); |
if (delegated_surface_id_.is_null()) { |
@@ -134,10 +135,8 @@ void PixelTestDelegatingOutputSurface::SwapBuffers(CompositorFrame* frame) { |
frame->delegated_frame_data->render_pass_list.back()->output_rect.size(); |
display_->Resize(frame_size); |
- std::unique_ptr<CompositorFrame> my_frame(new CompositorFrame); |
- frame->AssignTo(my_frame.get()); |
surface_factory_->SubmitCompositorFrame( |
- delegated_surface_id_, std::move(my_frame), |
+ delegated_surface_id_, std::move(frame), |
base::Bind(&PixelTestDelegatingOutputSurface::DrawCallback, |
weak_ptrs_.GetWeakPtr())); |