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

Side by Side Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 2340143002: cc: Rename LayerTreeHost to LayerTreeHostInProcess. (Closed)
Patch Set: comment fix Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest_remote_server.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 ASSERT_TRUE(impl_thread.Start()); 1303 ASSERT_TRUE(impl_thread.Start());
1304 ASSERT_TRUE(impl_thread.task_runner()); 1304 ASSERT_TRUE(impl_thread.task_runner());
1305 1305
1306 bool received_stop_flinging = false; 1306 bool received_stop_flinging = false;
1307 LayerTreeSettings settings; 1307 LayerTreeSettings settings;
1308 1308
1309 StubLayerTreeHostClient layer_tree_host_client; 1309 StubLayerTreeHostClient layer_tree_host_client;
1310 TestSharedBitmapManager shared_bitmap_manager; 1310 TestSharedBitmapManager shared_bitmap_manager;
1311 TestTaskGraphRunner task_graph_runner; 1311 TestTaskGraphRunner task_graph_runner;
1312 1312
1313 LayerTreeHost::InitParams params; 1313 LayerTreeHostInProcess::InitParams params;
1314 params.client = &layer_tree_host_client; 1314 params.client = &layer_tree_host_client;
1315 params.shared_bitmap_manager = &shared_bitmap_manager; 1315 params.shared_bitmap_manager = &shared_bitmap_manager;
1316 params.task_graph_runner = &task_graph_runner; 1316 params.task_graph_runner = &task_graph_runner;
1317 params.settings = &settings; 1317 params.settings = &settings;
1318 params.main_task_runner = base::ThreadTaskRunnerHandle::Get(); 1318 params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
1319 params.animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN); 1319 params.animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
1320 std::unique_ptr<LayerTreeHostInterface> layer_tree_host = 1320 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host =
1321 LayerTreeHost::CreateThreaded(impl_thread.task_runner(), &params); 1321 LayerTreeHostInProcess::CreateThreaded(impl_thread.task_runner(),
1322 &params);
1322 1323
1323 ThreadCheckingInputHandlerClient input_handler_client( 1324 ThreadCheckingInputHandlerClient input_handler_client(
1324 impl_thread.task_runner().get(), &received_stop_flinging); 1325 impl_thread.task_runner().get(), &received_stop_flinging);
1325 impl_thread.task_runner()->PostTask( 1326 impl_thread.task_runner()->PostTask(
1326 FROM_HERE, base::Bind(&BindInputHandlerOnCompositorThread, 1327 FROM_HERE, base::Bind(&BindInputHandlerOnCompositorThread,
1327 layer_tree_host->GetInputHandler(), 1328 layer_tree_host->GetInputHandler(),
1328 base::Unretained(&input_handler_client))); 1329 base::Unretained(&input_handler_client)));
1329 1330
1330 layer_tree_host->DidStopFlinging(); 1331 layer_tree_host->DidStopFlinging();
1331 layer_tree_host = nullptr; 1332 layer_tree_host = nullptr;
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 1974
1974 const gfx::Vector2dF elastic_overscroll_test_cases_[5] = { 1975 const gfx::Vector2dF elastic_overscroll_test_cases_[5] = {
1975 gfx::Vector2dF(0, 0), gfx::Vector2dF(5, 10), gfx::Vector2dF(5, 5), 1976 gfx::Vector2dF(0, 0), gfx::Vector2dF(5, 10), gfx::Vector2dF(5, 5),
1976 gfx::Vector2dF(-4, -5), gfx::Vector2dF(0, 0)}; 1977 gfx::Vector2dF(-4, -5), gfx::Vector2dF(0, 0)};
1977 }; 1978 };
1978 1979
1979 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestElasticOverscroll); 1980 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestElasticOverscroll);
1980 1981
1981 } // namespace 1982 } // namespace
1982 } // namespace cc 1983 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_remote_server.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698