| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 std::vector<PictureLayerImpl::Pair>* layers) const; | 481 std::vector<PictureLayerImpl::Pair>* layers) const; |
| 481 | 482 |
| 482 void SetTopControlsLayoutHeight(float height); | 483 void SetTopControlsLayoutHeight(float height); |
| 483 | 484 |
| 484 protected: | 485 protected: |
| 485 LayerTreeHostImpl( | 486 LayerTreeHostImpl( |
| 486 const LayerTreeSettings& settings, | 487 const LayerTreeSettings& settings, |
| 487 LayerTreeHostImplClient* client, | 488 LayerTreeHostImplClient* client, |
| 488 Proxy* proxy, | 489 Proxy* proxy, |
| 489 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 490 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 490 SharedBitmapManager* manager, | 491 SharedBitmapManager* shared_bitmap_manager, |
| 492 GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 491 int id); | 493 int id); |
| 492 | 494 |
| 493 void UpdateInnerViewportContainerSize(); | 495 void UpdateInnerViewportContainerSize(); |
| 494 | 496 |
| 495 // Virtual for testing. | 497 // Virtual for testing. |
| 496 virtual void AnimateLayers(base::TimeTicks monotonic_time); | 498 virtual void AnimateLayers(base::TimeTicks monotonic_time); |
| 497 | 499 |
| 498 // Virtual for testing. | 500 // Virtual for testing. |
| 499 virtual base::TimeDelta LowFrequencyAnimationInterval() const; | 501 virtual base::TimeDelta LowFrequencyAnimationInterval() const; |
| 500 | 502 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 | 691 |
| 690 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 692 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 691 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 693 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
| 692 | 694 |
| 693 bool need_to_update_visible_tiles_before_draw_; | 695 bool need_to_update_visible_tiles_before_draw_; |
| 694 | 696 |
| 695 // Optional callback to notify of new tree activations. | 697 // Optional callback to notify of new tree activations. |
| 696 base::Closure tree_activation_callback_; | 698 base::Closure tree_activation_callback_; |
| 697 | 699 |
| 698 SharedBitmapManager* shared_bitmap_manager_; | 700 SharedBitmapManager* shared_bitmap_manager_; |
| 701 GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 699 int id_; | 702 int id_; |
| 700 | 703 |
| 701 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 704 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 702 | 705 |
| 703 std::vector<PictureLayerImpl*> picture_layers_; | 706 std::vector<PictureLayerImpl*> picture_layers_; |
| 704 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 707 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 705 | 708 |
| 706 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 709 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 707 }; | 710 }; |
| 708 | 711 |
| 709 } // namespace cc | 712 } // namespace cc |
| 710 | 713 |
| 711 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 714 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |