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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 std::unique_ptr<TaskRunnerProvider> task_runner_provider); | 306 std::unique_ptr<TaskRunnerProvider> task_runner_provider); |
307 void SetUIResourceManagerForTesting( | 307 void SetUIResourceManagerForTesting( |
308 std::unique_ptr<UIResourceManager> ui_resource_manager); | 308 std::unique_ptr<UIResourceManager> ui_resource_manager); |
309 | 309 |
310 // task_graph_runner() returns a valid value only until the LayerTreeHostImpl | 310 // task_graph_runner() returns a valid value only until the LayerTreeHostImpl |
311 // is created in CreateLayerTreeHostImpl(). | 311 // is created in CreateLayerTreeHostImpl(). |
312 TaskGraphRunner* task_graph_runner() const { return task_graph_runner_; } | 312 TaskGraphRunner* task_graph_runner() const { return task_graph_runner_; } |
313 | 313 |
314 void OnCommitForSwapPromises(); | 314 void OnCommitForSwapPromises(); |
315 | 315 |
316 void RecordGpuRasterizationHistogram(); | 316 void RecordGpuRasterizationHistogram(const LayerTreeHostImpl* host_impl); |
317 | 317 |
318 MicroBenchmarkController micro_benchmark_controller_; | 318 MicroBenchmarkController micro_benchmark_controller_; |
319 | 319 |
320 std::unique_ptr<LayerTree> layer_tree_; | 320 std::unique_ptr<LayerTree> layer_tree_; |
321 | 321 |
322 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 322 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
323 | 323 |
324 private: | 324 private: |
325 friend class LayerTreeHostSerializationTest; | 325 friend class LayerTreeHostSerializationTest; |
326 | 326 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 389 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
390 | 390 |
391 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; | 391 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; |
392 | 392 |
393 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 393 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
394 }; | 394 }; |
395 | 395 |
396 } // namespace cc | 396 } // namespace cc |
397 | 397 |
398 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 398 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |