| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 public TopControlsManagerClient, | 113 public TopControlsManagerClient, |
| 114 public ScrollbarAnimationControllerClient, | 114 public ScrollbarAnimationControllerClient, |
| 115 public BeginFrameSourceMixIn, | 115 public BeginFrameSourceMixIn, |
| 116 public base::SupportsWeakPtr<LayerTreeHostImpl> { | 116 public base::SupportsWeakPtr<LayerTreeHostImpl> { |
| 117 public: | 117 public: |
| 118 static scoped_ptr<LayerTreeHostImpl> Create( | 118 static scoped_ptr<LayerTreeHostImpl> Create( |
| 119 const LayerTreeSettings& settings, | 119 const LayerTreeSettings& settings, |
| 120 LayerTreeHostImplClient* client, | 120 LayerTreeHostImplClient* client, |
| 121 Proxy* proxy, | 121 Proxy* proxy, |
| 122 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 122 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 123 SharedBitmapManager* manager, | 123 SharedBitmapManager* shared_bitmap_manager, |
| 124 GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 124 int id); | 125 int id); |
| 125 virtual ~LayerTreeHostImpl(); | 126 virtual ~LayerTreeHostImpl(); |
| 126 | 127 |
| 127 // BeginFrameSourceMixIn implementation | 128 // BeginFrameSourceMixIn implementation |
| 128 virtual void OnNeedsBeginFramesChange(bool needs_begin_frames) override; | 129 virtual void OnNeedsBeginFramesChange(bool needs_begin_frames) override; |
| 129 | 130 |
| 130 // InputHandler implementation | 131 // InputHandler implementation |
| 131 virtual void BindToClient(InputHandlerClient* client) override; | 132 virtual void BindToClient(InputHandlerClient* client) override; |
| 132 virtual InputHandler::ScrollStatus ScrollBegin( | 133 virtual InputHandler::ScrollStatus ScrollBegin( |
| 133 const gfx::Point& viewport_point, | 134 const gfx::Point& viewport_point, |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } | 486 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } |
| 486 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } | 487 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } |
| 487 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } | 488 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } |
| 488 | 489 |
| 489 protected: | 490 protected: |
| 490 LayerTreeHostImpl( | 491 LayerTreeHostImpl( |
| 491 const LayerTreeSettings& settings, | 492 const LayerTreeSettings& settings, |
| 492 LayerTreeHostImplClient* client, | 493 LayerTreeHostImplClient* client, |
| 493 Proxy* proxy, | 494 Proxy* proxy, |
| 494 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 495 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 495 SharedBitmapManager* manager, | 496 SharedBitmapManager* shared_bitmap_manager, |
| 497 GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 496 int id); | 498 int id); |
| 497 | 499 |
| 498 void UpdateInnerViewportContainerSize(); | 500 void UpdateInnerViewportContainerSize(); |
| 499 | 501 |
| 500 // Virtual for testing. | 502 // Virtual for testing. |
| 501 virtual void AnimateLayers(base::TimeTicks monotonic_time); | 503 virtual void AnimateLayers(base::TimeTicks monotonic_time); |
| 502 | 504 |
| 503 // Virtual for testing. | 505 // Virtual for testing. |
| 504 virtual base::TimeDelta LowFrequencyAnimationInterval() const; | 506 virtual base::TimeDelta LowFrequencyAnimationInterval() const; |
| 505 | 507 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 | 696 |
| 695 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 697 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 696 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 698 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
| 697 | 699 |
| 698 bool need_to_update_visible_tiles_before_draw_; | 700 bool need_to_update_visible_tiles_before_draw_; |
| 699 | 701 |
| 700 // Optional callback to notify of new tree activations. | 702 // Optional callback to notify of new tree activations. |
| 701 base::Closure tree_activation_callback_; | 703 base::Closure tree_activation_callback_; |
| 702 | 704 |
| 703 SharedBitmapManager* shared_bitmap_manager_; | 705 SharedBitmapManager* shared_bitmap_manager_; |
| 706 GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 704 int id_; | 707 int id_; |
| 705 | 708 |
| 706 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 709 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 707 | 710 |
| 708 std::vector<PictureLayerImpl*> picture_layers_; | 711 std::vector<PictureLayerImpl*> picture_layers_; |
| 709 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 712 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 710 | 713 |
| 711 bool requires_high_res_to_draw_; | 714 bool requires_high_res_to_draw_; |
| 712 | 715 |
| 713 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 716 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 714 }; | 717 }; |
| 715 | 718 |
| 716 } // namespace cc | 719 } // namespace cc |
| 717 | 720 |
| 718 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 721 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |