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

Unified Diff: cc/layers/picture_layer_unittest.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
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index 917a36fefdd93f63a623781be570aa986d235cc6..37070127a779b5f391520b3d14e96984e3b2fa9d 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -129,14 +129,18 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
MockContentLayerClient client;
scoped_refptr<FakePictureLayer> layer = FakePictureLayer::Create(&client);
- scoped_ptr<LayerTreeHost> host1 = LayerTreeHost::CreateSingleThreaded(
- &host_client1, &host_client1, shared_bitmap_manager.get(), nullptr,
- nullptr, settings, base::ThreadTaskRunnerHandle::Get(), nullptr);
+ LayerTreeHost::InitParams params;
+ params.client = &host_client1;
+ params.shared_bitmap_manager = shared_bitmap_manager.get();
+ params.settings = &settings;
+ params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
+ scoped_ptr<LayerTreeHost> host1 =
+ LayerTreeHost::CreateSingleThreaded(&host_client1, &params);
host_client1.SetLayerTreeHost(host1.get());
- scoped_ptr<LayerTreeHost> host2 = LayerTreeHost::CreateSingleThreaded(
- &host_client2, &host_client2, shared_bitmap_manager.get(), nullptr,
- nullptr, settings, base::ThreadTaskRunnerHandle::Get(), nullptr);
+ params.client = &host_client2;
+ scoped_ptr<LayerTreeHost> host2 =
+ LayerTreeHost::CreateSingleThreaded(&host_client2, &params);
host_client2.SetLayerTreeHost(host2.get());
// The PictureLayer is put in one LayerTreeHost.

Powered by Google App Engine
This is Rietveld 408576698