Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: android_webview/browser/hardware_renderer.cc

Issue 1126253005: cc: Add LayerTreeHost::InitParams for LayerTreeHost creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: all Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/layers/layer_unittest.cc » ('j') | cc/test/fake_layer_tree_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, &params);
layer_tree_host_->SetRootLayer(root_layer_);
layer_tree_host_->SetLayerTreeHostClientReady();
layer_tree_host_->set_has_transparent_background(true);
« no previous file with comments | « no previous file | cc/layers/layer_unittest.cc » ('j') | cc/test/fake_layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698