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 fa1b83c208af708a55ed7ec4e257dd4c0a3a07d4..cc63498853a3a2064c18abbf332f94e9137ac953 100644 |
--- a/cc/test/pixel_test_delegating_output_surface.cc |
+++ b/cc/test/pixel_test_delegating_output_surface.cc |
@@ -135,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> frame_copy(new CompositorFrame); |
- *frame_copy = std::move(frame); |
surface_factory_->SubmitCompositorFrame( |
- delegated_surface_id_, std::move(frame_copy), |
+ delegated_surface_id_, std::move(frame), |
base::Bind(&PixelTestDelegatingOutputSurface::DrawCallback, |
weak_ptrs_.GetWeakPtr())); |
@@ -158,7 +156,8 @@ void PixelTestDelegatingOutputSurface::DrawCallback(SurfaceDrawStatus) { |
void PixelTestDelegatingOutputSurface::ForceReclaimResources() { |
if (allow_force_reclaim_resources_ && !delegated_surface_id_.is_null()) { |
- surface_factory_->SubmitCompositorFrame(delegated_surface_id_, nullptr, |
+ surface_factory_->SubmitCompositorFrame(delegated_surface_id_, |
+ CompositorFrame(), |
SurfaceFactory::DrawCallback()); |
} |
} |