| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 std::unique_ptr<TaskRunnerProvider> task_runner_provider); | 465 std::unique_ptr<TaskRunnerProvider> task_runner_provider); |
| 466 void SetUIResourceManagerForTesting( | 466 void SetUIResourceManagerForTesting( |
| 467 std::unique_ptr<UIResourceManager> ui_resource_manager); | 467 std::unique_ptr<UIResourceManager> ui_resource_manager); |
| 468 | 468 |
| 469 // task_graph_runner() returns a valid value only until the LayerTreeHostImpl | 469 // task_graph_runner() returns a valid value only until the LayerTreeHostImpl |
| 470 // is created in CreateLayerTreeHostImpl(). | 470 // is created in CreateLayerTreeHostImpl(). |
| 471 TaskGraphRunner* task_graph_runner() const { return task_graph_runner_; } | 471 TaskGraphRunner* task_graph_runner() const { return task_graph_runner_; } |
| 472 | 472 |
| 473 void OnCommitForSwapPromises(); | 473 void OnCommitForSwapPromises(); |
| 474 | 474 |
| 475 void RecordGpuRasterizationHistogram(); | 475 void RecordGpuRasterizationHistogram(const LayerTreeHostImpl* host_impl); |
| 476 | 476 |
| 477 MicroBenchmarkController micro_benchmark_controller_; | 477 MicroBenchmarkController micro_benchmark_controller_; |
| 478 | 478 |
| 479 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 479 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
| 480 | 480 |
| 481 private: | 481 private: |
| 482 friend class LayerTreeHostSerializationTest; | 482 friend class LayerTreeHostSerializationTest; |
| 483 | 483 |
| 484 // This is the number of consecutive frames in which we want the content to be | 484 // This is the number of consecutive frames in which we want the content to be |
| 485 // suitable for GPU rasterization before re-enabling it. | 485 // suitable for GPU rasterization before re-enabling it. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 MutatorHost* mutator_host_; | 598 MutatorHost* mutator_host_; |
| 599 | 599 |
| 600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; | 600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; |
| 601 | 601 |
| 602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 603 }; | 603 }; |
| 604 | 604 |
| 605 } // namespace cc | 605 } // namespace cc |
| 606 | 606 |
| 607 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 607 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |