OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/test/layer_tree_host_remote_for_testing.h" | 5 #include "cc/test/layer_tree_host_remote_for_testing.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/animation/animation_host.h" | 8 #include "cc/animation/animation_host.h" |
9 #include "cc/blimp/compositor_proto_state.h" | 9 #include "cc/blimp/compositor_proto_state.h" |
10 #include "cc/blimp/compositor_state_deserializer.h" | 10 #include "cc/blimp/compositor_state_deserializer.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 235 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
236 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 236 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
237 MutatorHost* mutator_host) { | 237 MutatorHost* mutator_host) { |
238 LayerTreeHostInProcess::InitParams params; | 238 LayerTreeHostInProcess::InitParams params; |
239 | 239 |
240 params.client = client; | 240 params.client = client; |
241 params.task_graph_runner = task_graph_runner; | 241 params.task_graph_runner = task_graph_runner; |
242 params.settings = &settings; | 242 params.settings = &settings; |
243 params.main_task_runner = main_task_runner; | 243 params.main_task_runner = main_task_runner; |
244 params.mutator_host = mutator_host; | 244 params.mutator_host = mutator_host; |
| 245 params.image_worker_task_runner = nullptr; |
245 | 246 |
246 return LayerTreeHostInProcess::CreateThreaded(impl_task_runner, ¶ms); | 247 return LayerTreeHostInProcess::CreateThreaded(impl_task_runner, ¶ms); |
247 } | 248 } |
248 | 249 |
249 void LayerTreeHostRemoteForTesting::DidUpdateLocalState() { | 250 void LayerTreeHostRemoteForTesting::DidUpdateLocalState() { |
250 client_state_dirty_ = true; | 251 client_state_dirty_ = true; |
251 } | 252 } |
252 | 253 |
253 void LayerTreeHostRemoteForTesting::DispatchDrawAndSubmitCallbacks() { | 254 void LayerTreeHostRemoteForTesting::DispatchDrawAndSubmitCallbacks() { |
254 // Don't dispatch callbacks right after the commit on the remote host. Since | 255 // Don't dispatch callbacks right after the commit on the remote host. Since |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 } | 305 } |
305 | 306 |
306 // The only case where the remote host would give a compositor update is if | 307 // The only case where the remote host would give a compositor update is if |
307 // they wanted the main frame to go till the commit pipeline stage. So | 308 // they wanted the main frame to go till the commit pipeline stage. So |
308 // request one to make sure that the in process main frame also goes till | 309 // request one to make sure that the in process main frame also goes till |
309 // the commit step. | 310 // the commit step. |
310 layer_tree_host_in_process_->SetNeedsCommit(); | 311 layer_tree_host_in_process_->SetNeedsCommit(); |
311 } | 312 } |
312 | 313 |
313 } // namespace cc | 314 } // namespace cc |
OLD | NEW |