OLD | NEW |
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 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 | 1350 |
1351 TEST(LayerTreeHostFlingTest, DidStopFlingingThread) { | 1351 TEST(LayerTreeHostFlingTest, DidStopFlingingThread) { |
1352 base::Thread impl_thread("cc"); | 1352 base::Thread impl_thread("cc"); |
1353 ASSERT_TRUE(impl_thread.Start()); | 1353 ASSERT_TRUE(impl_thread.Start()); |
1354 | 1354 |
1355 bool received_stop_flinging = false; | 1355 bool received_stop_flinging = false; |
1356 LayerTreeSettings settings; | 1356 LayerTreeSettings settings; |
1357 | 1357 |
1358 ThreadCheckingInputHandlerClient input_handler_client( | 1358 ThreadCheckingInputHandlerClient input_handler_client( |
1359 impl_thread.task_runner().get(), &received_stop_flinging); | 1359 impl_thread.task_runner().get(), &received_stop_flinging); |
1360 FakeLayerTreeHostClient client(FakeLayerTreeHostClient::DIRECT_3D); | 1360 FakeLayerTreeHostClient client; |
1361 | 1361 |
1362 ASSERT_TRUE(impl_thread.task_runner()); | 1362 ASSERT_TRUE(impl_thread.task_runner()); |
1363 TestSharedBitmapManager shared_bitmap_manager; | 1363 TestSharedBitmapManager shared_bitmap_manager; |
1364 TestTaskGraphRunner task_graph_runner; | 1364 TestTaskGraphRunner task_graph_runner; |
1365 | 1365 |
1366 LayerTreeHost::InitParams params; | 1366 LayerTreeHost::InitParams params; |
1367 params.client = &client; | 1367 params.client = &client; |
1368 params.shared_bitmap_manager = &shared_bitmap_manager; | 1368 params.shared_bitmap_manager = &shared_bitmap_manager; |
1369 params.task_graph_runner = &task_graph_runner; | 1369 params.task_graph_runner = &task_graph_runner; |
1370 params.settings = &settings; | 1370 params.settings = &settings; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 int num_impl_commits_; | 1851 int num_impl_commits_; |
1852 int num_aborted_commits_; | 1852 int num_aborted_commits_; |
1853 int num_impl_scrolls_; | 1853 int num_impl_scrolls_; |
1854 int num_draws_; | 1854 int num_draws_; |
1855 }; | 1855 }; |
1856 | 1856 |
1857 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestScrollAbortedCommitMFBA); | 1857 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestScrollAbortedCommitMFBA); |
1858 | 1858 |
1859 } // namespace | 1859 } // namespace |
1860 } // namespace cc | 1860 } // namespace cc |
OLD | NEW |