Index: components/exo/surface.cc |
diff --git a/components/exo/surface.cc b/components/exo/surface.cc |
index 2c2edd9124da2357f6f60c5ee8a306628f7ea24e..685a70432e4317ee93e64eff74970b08fbeddfd9 100644 |
--- a/components/exo/surface.cc |
+++ b/components/exo/surface.cc |
@@ -555,7 +555,7 @@ void Surface::CommitSurfaceHierarchy() { |
} |
delegated_frame->render_pass_list.push_back(std::move(render_pass)); |
- std::unique_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); |
+ std::unique_ptr<cc::CompositorFrame> frame(cc::CompositorFrame::Create()); |
frame->delegated_frame_data = std::move(delegated_frame); |
factory_owner_->surface_factory_->SubmitCompositorFrame( |