| 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 <limits> | 8 #include <limits> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // The SharedBitmapManager will be used on the compositor thread. | 114 // The SharedBitmapManager will be used on the compositor thread. |
| 115 static scoped_ptr<LayerTreeHost> Create( | 115 static scoped_ptr<LayerTreeHost> Create( |
| 116 LayerTreeHostClient* client, | 116 LayerTreeHostClient* client, |
| 117 SharedBitmapManager* manager, | 117 SharedBitmapManager* manager, |
| 118 const LayerTreeSettings& settings, | 118 const LayerTreeSettings& settings, |
| 119 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 119 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 120 virtual ~LayerTreeHost(); | 120 virtual ~LayerTreeHost(); |
| 121 | 121 |
| 122 void SetLayerTreeHostClientReady(); | 122 void SetLayerTreeHostClientReady(); |
| 123 | 123 |
| 124 // Returns true if any LayerTreeHost is alive. | |
| 125 static bool AnyLayerTreeHostInstanceExists(); | |
| 126 | |
| 127 void set_needs_filter_context() { needs_filter_context_ = true; } | 124 void set_needs_filter_context() { needs_filter_context_ = true; } |
| 128 bool needs_offscreen_context() const { | 125 bool needs_offscreen_context() const { |
| 129 return needs_filter_context_; | 126 return needs_filter_context_; |
| 130 } | 127 } |
| 131 | 128 |
| 132 // LayerTreeHost interface to Proxy. | 129 // LayerTreeHost interface to Proxy. |
| 133 void WillBeginMainFrame() { client_->WillBeginMainFrame(); } | 130 void WillBeginMainFrame() { client_->WillBeginMainFrame(); } |
| 134 void DidBeginMainFrame(); | 131 void DidBeginMainFrame(); |
| 135 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); | 132 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); |
| 136 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); | 133 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 455 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
| 459 | 456 |
| 460 SharedBitmapManager* shared_bitmap_manager_; | 457 SharedBitmapManager* shared_bitmap_manager_; |
| 461 | 458 |
| 462 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 459 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 463 }; | 460 }; |
| 464 | 461 |
| 465 } // namespace cc | 462 } // namespace cc |
| 466 | 463 |
| 467 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 464 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |