OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 class CC_EXPORT LayerTreeHostInProcess : public LayerTreeHost { | 67 class CC_EXPORT LayerTreeHostInProcess : public LayerTreeHost { |
68 public: | 68 public: |
69 // TODO(sad): InitParams should be a movable type so that it can be | 69 // TODO(sad): InitParams should be a movable type so that it can be |
70 // std::move()d to the Create* functions. | 70 // std::move()d to the Create* functions. |
71 struct CC_EXPORT InitParams { | 71 struct CC_EXPORT InitParams { |
72 LayerTreeHostClient* client = nullptr; | 72 LayerTreeHostClient* client = nullptr; |
73 TaskGraphRunner* task_graph_runner = nullptr; | 73 TaskGraphRunner* task_graph_runner = nullptr; |
74 LayerTreeSettings const* settings = nullptr; | 74 LayerTreeSettings const* settings = nullptr; |
75 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner; | 75 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner; |
76 ImageSerializationProcessor* image_serialization_processor = nullptr; | 76 ImageSerializationProcessor* image_serialization_processor = nullptr; |
77 MutatorHost* mutator_host; | 77 MutatorHost* mutator_host = nullptr; |
| 78 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner; |
78 | 79 |
79 InitParams(); | 80 InitParams(); |
80 ~InitParams(); | 81 ~InitParams(); |
81 }; | 82 }; |
82 | 83 |
83 static std::unique_ptr<LayerTreeHostInProcess> CreateThreaded( | 84 static std::unique_ptr<LayerTreeHostInProcess> CreateThreaded( |
84 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 85 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
85 InitParams* params); | 86 InitParams* params); |
86 | 87 |
87 static std::unique_ptr<LayerTreeHostInProcess> CreateSingleThreaded( | 88 static std::unique_ptr<LayerTreeHostInProcess> CreateSingleThreaded( |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 311 |
311 // The state that was expected to be reflected from the main thread during | 312 // The state that was expected to be reflected from the main thread during |
312 // BeginMainFrame, but could not be done. The client provides these deltas | 313 // BeginMainFrame, but could not be done. The client provides these deltas |
313 // to use during the commit instead of applying them at that point because | 314 // to use during the commit instead of applying them at that point because |
314 // its necessary for these deltas to be applied *after* PropertyTrees are | 315 // its necessary for these deltas to be applied *after* PropertyTrees are |
315 // built/updated on the main thread. | 316 // built/updated on the main thread. |
316 // TODO(khushalsagar): Investigate removing this after SPV2, since then we | 317 // TODO(khushalsagar): Investigate removing this after SPV2, since then we |
317 // should get these PropertyTrees directly from blink? | 318 // should get these PropertyTrees directly from blink? |
318 std::unique_ptr<ReflectedMainFrameState> reflected_main_frame_state_; | 319 std::unique_ptr<ReflectedMainFrameState> reflected_main_frame_state_; |
319 | 320 |
| 321 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; |
| 322 |
320 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); | 323 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); |
321 }; | 324 }; |
322 | 325 |
323 } // namespace cc | 326 } // namespace cc |
324 | 327 |
325 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 328 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
OLD | NEW |