Index: mojo/examples/compositor_app/compositor_host.cc |
diff --git a/mojo/examples/compositor_app/compositor_host.cc b/mojo/examples/compositor_app/compositor_host.cc |
index 90d04bbd6dddb74495eaa5ee5946ca29d9c75b37..13e544c96396636e38cc604d407926fc4d128dc6 100644 |
--- a/mojo/examples/compositor_app/compositor_host.cc |
+++ b/mojo/examples/compositor_app/compositor_host.cc |
@@ -76,11 +76,9 @@ void CompositorHost::ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
float page_scale, |
float top_controls_delta) {} |
-scoped_ptr<cc::OutputSurface> CompositorHost::CreateOutputSurface( |
- bool fallback) { |
- return make_scoped_ptr( |
- new cc::OutputSurface( |
- new ContextProviderMojo(command_buffer_handle_.Pass()))); |
+void CompositorHost::RequestNewOutputSurface(bool fallback) { |
+ tree_->SetOutputSurface(make_scoped_ptr(new cc::OutputSurface( |
+ new ContextProviderMojo(command_buffer_handle_.Pass())))); |
} |
void CompositorHost::DidInitializeOutputSurface() { |