Index: android_webview/browser/hardware_renderer.cc |
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc |
index 4eed0439ff8739fe29c6ff71ab7f9d786112a284..c14e820604d49053ef41f930cef7a6eae5bd1386 100644 |
--- a/android_webview/browser/hardware_renderer.cc |
+++ b/android_webview/browser/hardware_renderer.cc |
@@ -58,8 +58,10 @@ HardwareRenderer::HardwareRenderer(SharedRendererState* state) |
// TODO(enne): Update this this compositor to use a synchronous scheduler. |
settings.single_thread_proxy_scheduler = false; |
- layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded( |
- this, this, nullptr, nullptr, nullptr, settings, nullptr, nullptr); |
+ cc::LayerTreeHost::InitParams params; |
+ params.client = this; |
+ params.settings = settings; |
+ layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded(this, ¶ms); |
layer_tree_host_->SetRootLayer(root_layer_); |
layer_tree_host_->SetLayerTreeHostClientReady(); |
layer_tree_host_->set_has_transparent_background(true); |