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