| Index: content/test/web_layer_tree_view_impl_for_testing.cc
|
| diff --git a/content/test/web_layer_tree_view_impl_for_testing.cc b/content/test/web_layer_tree_view_impl_for_testing.cc
|
| index 1b2f5f6e5600fb7425a28eb62abd2699f54fbc7d..6d4122056f7a9415d2bb9e90112978c98ce7be9b 100644
|
| --- a/content/test/web_layer_tree_view_impl_for_testing.cc
|
| +++ b/content/test/web_layer_tree_view_impl_for_testing.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/command_line.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/synchronization/lock.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "cc/base/switches.h"
|
| #include "cc/blink/web_layer_impl.h"
|
| #include "cc/input/input_handler.h"
|
| @@ -43,9 +44,11 @@ void WebLayerTreeViewImplForTesting::Initialize() {
|
|
|
| // Accelerated animations are enabled for unit tests.
|
| settings.accelerated_animation_enabled = true;
|
| - layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded(
|
| - this, this, nullptr, nullptr, nullptr, settings,
|
| - base::MessageLoopProxy::current(), nullptr);
|
| + cc::LayerTreeHost::InitParams params;
|
| + params.client = this;
|
| + params.settings = &settings;
|
| + params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
|
| + layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded(this, ¶ms);
|
| DCHECK(layer_tree_host_);
|
| }
|
|
|
|
|