Index: cc/trees/single_thread_proxy.cc |
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc |
index 11012151f1ca86d2e4f0ab8496290236230f882f..72a718c2958addd5fd55e2389925ef4bcbba7de3 100644 |
--- a/cc/trees/single_thread_proxy.cc |
+++ b/cc/trees/single_thread_proxy.cc |
@@ -149,7 +149,8 @@ |
layer_tree_host_->RequestNewOutputSurface(); |
} |
-void SingleThreadProxy::SetOutputSurface(OutputSurface* output_surface) { |
+void SingleThreadProxy::SetOutputSurface( |
+ scoped_ptr<OutputSurface> output_surface) { |
DCHECK(Proxy::IsMainThread()); |
DCHECK(layer_tree_host_->output_surface_lost()); |
DCHECK(output_surface_creation_requested_); |
@@ -159,7 +160,7 @@ |
{ |
DebugScopedSetMainThreadBlocked main_thread_blocked(this); |
DebugScopedSetImplThread impl(this); |
- success = layer_tree_host_impl_->InitializeRenderer(output_surface); |
+ success = layer_tree_host_impl_->InitializeRenderer(output_surface.Pass()); |
} |
if (success) { |