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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 TestTaskGraphRunner task_graph_runner; | 1318 TestTaskGraphRunner task_graph_runner; |
1319 | 1319 |
1320 auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN); | 1320 auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN); |
1321 | 1321 |
1322 LayerTreeHostInProcess::InitParams params; | 1322 LayerTreeHostInProcess::InitParams params; |
1323 params.client = &layer_tree_host_client; | 1323 params.client = &layer_tree_host_client; |
1324 params.task_graph_runner = &task_graph_runner; | 1324 params.task_graph_runner = &task_graph_runner; |
1325 params.settings = &settings; | 1325 params.settings = &settings; |
1326 params.main_task_runner = base::ThreadTaskRunnerHandle::Get(); | 1326 params.main_task_runner = base::ThreadTaskRunnerHandle::Get(); |
1327 params.mutator_host = animation_host.get(); | 1327 params.mutator_host = animation_host.get(); |
| 1328 params.image_worker_task_runner = nullptr; |
1328 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host = | 1329 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host = |
1329 LayerTreeHostInProcess::CreateThreaded(impl_thread.task_runner(), | 1330 LayerTreeHostInProcess::CreateThreaded(impl_thread.task_runner(), |
1330 ¶ms); | 1331 ¶ms); |
1331 | 1332 |
1332 ThreadCheckingInputHandlerClient input_handler_client( | 1333 ThreadCheckingInputHandlerClient input_handler_client( |
1333 impl_thread.task_runner().get(), &received_stop_flinging); | 1334 impl_thread.task_runner().get(), &received_stop_flinging); |
1334 impl_thread.task_runner()->PostTask( | 1335 impl_thread.task_runner()->PostTask( |
1335 FROM_HERE, base::Bind(&BindInputHandlerOnCompositorThread, | 1336 FROM_HERE, base::Bind(&BindInputHandlerOnCompositorThread, |
1336 layer_tree_host->GetInputHandler(), | 1337 layer_tree_host->GetInputHandler(), |
1337 base::Unretained(&input_handler_client))); | 1338 base::Unretained(&input_handler_client))); |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 | 2240 |
2240 const float initial_page_scale_ = 0.5f; | 2241 const float initial_page_scale_ = 0.5f; |
2241 const float page_scale_update_ = 0.2f; | 2242 const float page_scale_update_ = 0.2f; |
2242 }; | 2243 }; |
2243 | 2244 |
2244 // The reflected deltas are supported in threaded mode only. | 2245 // The reflected deltas are supported in threaded mode only. |
2245 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestAppliesReflectedDeltas); | 2246 MULTI_THREAD_TEST_F(LayerTreeHostScrollTestAppliesReflectedDeltas); |
2246 | 2247 |
2247 } // namespace | 2248 } // namespace |
2248 } // namespace cc | 2249 } // namespace cc |
OLD | NEW |