| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // The SharedBitmapManager will be used on the compositor thread. | 127 // The SharedBitmapManager will be used on the compositor thread. |
| 128 static scoped_ptr<LayerTreeHost> Create( | 128 static scoped_ptr<LayerTreeHost> Create( |
| 129 LayerTreeHostClient* client, | 129 LayerTreeHostClient* client, |
| 130 SharedBitmapManager* manager, | 130 SharedBitmapManager* manager, |
| 131 const LayerTreeSettings& settings, | 131 const LayerTreeSettings& settings, |
| 132 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 132 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 133 virtual ~LayerTreeHost(); | 133 virtual ~LayerTreeHost(); |
| 134 | 134 |
| 135 void SetLayerTreeHostClientReady(); | 135 void SetLayerTreeHostClientReady(); |
| 136 | 136 |
| 137 // Returns true if any LayerTreeHost is alive. | |
| 138 static bool AnyLayerTreeHostInstanceExists(); | |
| 139 | |
| 140 void set_needs_filter_context() { needs_filter_context_ = true; } | 137 void set_needs_filter_context() { needs_filter_context_ = true; } |
| 141 bool needs_offscreen_context() const { | 138 bool needs_offscreen_context() const { |
| 142 return needs_filter_context_; | 139 return needs_filter_context_; |
| 143 } | 140 } |
| 144 | 141 |
| 145 // LayerTreeHost interface to Proxy. | 142 // LayerTreeHost interface to Proxy. |
| 146 void WillBeginMainFrame() { client_->WillBeginMainFrame(); } | 143 void WillBeginMainFrame() { client_->WillBeginMainFrame(); } |
| 147 void DidBeginMainFrame(); | 144 void DidBeginMainFrame(); |
| 148 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); | 145 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); |
| 149 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); | 146 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 470 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
| 474 | 471 |
| 475 SharedBitmapManager* shared_bitmap_manager_; | 472 SharedBitmapManager* shared_bitmap_manager_; |
| 476 | 473 |
| 477 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 474 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 478 }; | 475 }; |
| 479 | 476 |
| 480 } // namespace cc | 477 } // namespace cc |
| 481 | 478 |
| 482 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 479 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |