Index: cc/trees/single_thread_proxy.cc |
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc |
index 646bc3fbe4500e3220ac371170d24b8a856a484e..0d7f22303cc3fbbe173840e2d0b9dfde87c25a72 100644 |
--- a/cc/trees/single_thread_proxy.cc |
+++ b/cc/trees/single_thread_proxy.cc |
@@ -115,6 +115,7 @@ void SingleThreadProxy::CreateAndInitializeOutputSurface() { |
scoped_ptr<OutputSurface> output_surface = |
layer_tree_host_->CreateOutputSurface(); |
+ OutputSurface* output_surface_ptr = output_surface.get(); |
renderer_capabilities_for_main_thread_ = RendererCapabilities(); |
@@ -131,7 +132,8 @@ void SingleThreadProxy::CreateAndInitializeOutputSurface() { |
if (success) { |
if (scheduler_on_impl_thread_) |
- scheduler_on_impl_thread_->DidCreateAndInitializeOutputSurface(); |
+ scheduler_on_impl_thread_->DidCreateAndInitializeOutputSurface( |
+ output_surface_ptr); |
} else if (Proxy::MainThreadTaskRunner()) { |
MainThreadTaskRunner()->PostTask( |
FROM_HERE, |
@@ -551,10 +553,6 @@ bool SingleThreadProxy::MainFrameWillHappenForTesting() { |
return false; |
} |
-BeginFrameSource* SingleThreadProxy::GetExternalBeginFrameSource() { |
- return layer_tree_host_impl_.get(); |
-} |
- |
void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { |
layer_tree_host_impl_->WillBeginImplFrame(args); |
} |