| Index: cc/test/fake_layer_tree_host_client.cc
|
| diff --git a/cc/test/fake_layer_tree_host_client.cc b/cc/test/fake_layer_tree_host_client.cc
|
| index 71b0f4dd745cb8b127be2bd627c324739f2d67c3..621fc99b956bc04caba3a24c1ea3c92a685ef70a 100644
|
| --- a/cc/test/fake_layer_tree_host_client.cc
|
| +++ b/cc/test/fake_layer_tree_host_client.cc
|
| @@ -32,22 +32,21 @@ scoped_ptr<OutputSurface> FakeLayerTreeHostClient::CreateOutputSurface(
|
|
|
| if (use_delegating_renderer_)
|
| return FakeOutputSurface::CreateDelegating3d().PassAs<OutputSurface>();
|
| -
|
| - return CreateFakeOutputSurface();
|
| + return FakeOutputSurface::Create3d().PassAs<OutputSurface>();
|
| }
|
|
|
| -scoped_refptr<cc::ContextProvider> FakeLayerTreeHostClient::
|
| +scoped_refptr<ContextProvider> FakeLayerTreeHostClient::
|
| OffscreenContextProviderForMainThread() {
|
| if (!main_thread_contexts_.get() ||
|
| main_thread_contexts_->DestroyedOnMainThread()) {
|
| main_thread_contexts_ = TestContextProvider::Create();
|
| - if (!main_thread_contexts_->BindToCurrentThread())
|
| + if (main_thread_contexts_ && !main_thread_contexts_->BindToCurrentThread())
|
| main_thread_contexts_ = NULL;
|
| }
|
| return main_thread_contexts_;
|
| }
|
|
|
| -scoped_refptr<cc::ContextProvider> FakeLayerTreeHostClient::
|
| +scoped_refptr<ContextProvider> FakeLayerTreeHostClient::
|
| OffscreenContextProviderForCompositorThread() {
|
| if (!compositor_thread_contexts_.get() ||
|
| compositor_thread_contexts_->DestroyedOnMainThread())
|
|
|