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

Unified Diff: cc/layers/picture_layer_unittest.cc

Issue 2650303002: cc: Remove the LayerTreeHost abstraction. (Closed)
Patch Set: missed ui Created 3 years, 11 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 | « cc/layers/layer_unittest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index 76d8ec9fa1935d23d36c103c3dedc35c54fffe7d..a4199c4b82c9565cd1a8b4e1881ee7b2503ec263 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -302,22 +302,21 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
- LayerTreeHostInProcess::InitParams params;
+ LayerTreeHost::InitParams params;
params.client = &host_client1;
params.settings = &settings;
params.task_graph_runner = &task_graph_runner;
params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
params.mutator_host = animation_host.get();
std::unique_ptr<LayerTreeHost> host1 =
- LayerTreeHostInProcess::CreateSingleThreaded(&single_thread_client,
- &params);
+ LayerTreeHost::CreateSingleThreaded(&single_thread_client, &params);
host1->SetVisible(true);
host_client1.SetLayerTreeHost(host1.get());
auto animation_host2 = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
// TODO(sad): InitParams will be movable.
- LayerTreeHostInProcess::InitParams params2;
+ LayerTreeHost::InitParams params2;
params2.client = &host_client1;
params2.settings = &settings;
params2.task_graph_runner = &task_graph_runner;
@@ -325,8 +324,7 @@ TEST(PictureLayerTest, NonMonotonicSourceFrameNumber) {
params2.client = &host_client2;
params2.mutator_host = animation_host2.get();
std::unique_ptr<LayerTreeHost> host2 =
- LayerTreeHostInProcess::CreateSingleThreaded(&single_thread_client,
- &params2);
+ LayerTreeHost::CreateSingleThreaded(&single_thread_client, &params2);
host2->SetVisible(true);
host_client2.SetLayerTreeHost(host2.get());
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698