| 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 <set> | 10 #include <set> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void BeginMainFrame(const BeginFrameArgs& args); | 117 void BeginMainFrame(const BeginFrameArgs& args); |
| 118 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); | 118 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); |
| 119 void DidStopFlinging(); | 119 void DidStopFlinging(); |
| 120 void Layout(); | 120 void Layout(); |
| 121 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); | 121 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); |
| 122 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); | 122 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); |
| 123 void WillCommit(); | 123 void WillCommit(); |
| 124 void CommitComplete(); | 124 void CommitComplete(); |
| 125 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface); | 125 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface); |
| 126 void RequestNewOutputSurface(); | 126 void RequestNewOutputSurface(); |
| 127 void DidInitializeOutputSurface(); |
| 128 void DidFailToInitializeOutputSurface(); |
| 127 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 129 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
| 128 LayerTreeHostImplClient* client); | 130 LayerTreeHostImplClient* client); |
| 129 void DidLoseOutputSurface(); | 131 void DidLoseOutputSurface(); |
| 130 bool output_surface_lost() const { return output_surface_lost_; } | 132 bool output_surface_lost() const { return output_surface_lost_; } |
| 131 virtual void OnCreateAndInitializeOutputSurfaceAttempted(bool success); | |
| 132 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } | 133 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } |
| 133 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } | 134 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } |
| 134 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); | 135 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); |
| 135 bool UpdateLayers(ResourceUpdateQueue* queue); | 136 bool UpdateLayers(ResourceUpdateQueue* queue); |
| 136 | 137 |
| 137 LayerTreeHostClient* client() { return client_; } | 138 LayerTreeHostClient* client() { return client_; } |
| 138 const base::WeakPtr<InputHandler>& GetInputHandler() { | 139 const base::WeakPtr<InputHandler>& GetInputHandler() { |
| 139 return input_handler_weak_ptr_; | 140 return input_handler_weak_ptr_; |
| 140 } | 141 } |
| 141 | 142 |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 392 |
| 392 base::CancelableClosure prepaint_callback_; | 393 base::CancelableClosure prepaint_callback_; |
| 393 | 394 |
| 394 LayerTreeHostClient* client_; | 395 LayerTreeHostClient* client_; |
| 395 scoped_ptr<Proxy> proxy_; | 396 scoped_ptr<Proxy> proxy_; |
| 396 | 397 |
| 397 int source_frame_number_; | 398 int source_frame_number_; |
| 398 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; | 399 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; |
| 399 | 400 |
| 400 bool output_surface_lost_; | 401 bool output_surface_lost_; |
| 401 int num_failed_recreate_attempts_; | |
| 402 | 402 |
| 403 scoped_refptr<Layer> root_layer_; | 403 scoped_refptr<Layer> root_layer_; |
| 404 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; | 404 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; |
| 405 | 405 |
| 406 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; | 406 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; |
| 407 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; | 407 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; |
| 408 | 408 |
| 409 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 409 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
| 410 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 410 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
| 411 | 411 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 477 |
| 478 uint32_t surface_id_namespace_; | 478 uint32_t surface_id_namespace_; |
| 479 uint32_t next_surface_sequence_; | 479 uint32_t next_surface_sequence_; |
| 480 | 480 |
| 481 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 481 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 482 }; | 482 }; |
| 483 | 483 |
| 484 } // namespace cc | 484 } // namespace cc |
| 485 | 485 |
| 486 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 486 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |