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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
476 | 476 |
477 void GetPictureLayerImplPairs( | 477 void GetPictureLayerImplPairs( |
478 std::vector<PictureLayerImpl::Pair>* layers) const; | 478 std::vector<PictureLayerImpl::Pair>* layers) const; |
479 | 479 |
480 void SetTopControlsLayoutHeight(float height); | 480 void SetTopControlsLayoutHeight(float height); |
481 | 481 |
482 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } | 482 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } |
483 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } | 483 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } |
484 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } | 484 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } |
485 | 485 |
486 // Only valid for synchronous (non-scheduled) single-threaded case. | |
487 void SynchronouslyInitializeAllTiles(); | |
488 | |
486 protected: | 489 protected: |
487 LayerTreeHostImpl( | 490 LayerTreeHostImpl( |
488 const LayerTreeSettings& settings, | 491 const LayerTreeSettings& settings, |
489 LayerTreeHostImplClient* client, | 492 LayerTreeHostImplClient* client, |
490 Proxy* proxy, | 493 Proxy* proxy, |
491 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 494 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
492 SharedBitmapManager* shared_bitmap_manager, | 495 SharedBitmapManager* shared_bitmap_manager, |
493 GpuMemoryBufferManager* gpu_memory_buffer_manager, | 496 GpuMemoryBufferManager* gpu_memory_buffer_manager, |
494 int id); | 497 int id); |
495 | 498 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
687 | 690 |
688 BeginFrameArgs current_begin_frame_args_; | 691 BeginFrameArgs current_begin_frame_args_; |
689 | 692 |
690 // Expected time between two begin impl frame calls. | 693 // Expected time between two begin impl frame calls. |
691 base::TimeDelta begin_impl_frame_interval_; | 694 base::TimeDelta begin_impl_frame_interval_; |
692 | 695 |
693 scoped_ptr<AnimationRegistrar> animation_registrar_; | 696 scoped_ptr<AnimationRegistrar> animation_registrar_; |
694 | 697 |
695 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 698 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
696 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 699 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
700 scoped_ptr<TaskGraphRunner> single_thread_synchronous_task_graph_runner_; | |
reveman
2014/10/28 03:46:33
TaskGraphRunner is pretty lightweight. I think you
| |
697 | 701 |
698 bool need_to_update_visible_tiles_before_draw_; | 702 bool need_to_update_visible_tiles_before_draw_; |
699 | 703 |
700 // Optional callback to notify of new tree activations. | 704 // Optional callback to notify of new tree activations. |
701 base::Closure tree_activation_callback_; | 705 base::Closure tree_activation_callback_; |
702 | 706 |
703 SharedBitmapManager* shared_bitmap_manager_; | 707 SharedBitmapManager* shared_bitmap_manager_; |
704 GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 708 GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
705 int id_; | 709 int id_; |
706 | 710 |
707 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 711 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
708 | 712 |
709 std::vector<PictureLayerImpl*> picture_layers_; | 713 std::vector<PictureLayerImpl*> picture_layers_; |
710 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 714 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
711 | 715 |
712 bool requires_high_res_to_draw_; | 716 bool requires_high_res_to_draw_; |
713 | 717 |
714 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 718 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
715 }; | 719 }; |
716 | 720 |
717 } // namespace cc | 721 } // namespace cc |
718 | 722 |
719 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 723 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |