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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void BeginMainFrame(const BeginFrameArgs& args); | 105 void BeginMainFrame(const BeginFrameArgs& args); |
106 void BeginMainFrameNotExpectedSoon(); | 106 void BeginMainFrameNotExpectedSoon(); |
107 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); | 107 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); |
108 void DidStopFlinging(); | 108 void DidStopFlinging(); |
109 void Layout(); | 109 void Layout(); |
110 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); | 110 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); |
111 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); | 111 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); |
112 void WillCommit(); | 112 void WillCommit(); |
113 void CommitComplete(); | 113 void CommitComplete(); |
114 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface); | 114 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface); |
| 115 scoped_ptr<OutputSurface> ReleaseOutputSurface(); |
115 void RequestNewOutputSurface(); | 116 void RequestNewOutputSurface(); |
116 void DidInitializeOutputSurface(); | 117 void DidInitializeOutputSurface(); |
117 void DidFailToInitializeOutputSurface(); | 118 void DidFailToInitializeOutputSurface(); |
118 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 119 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
119 LayerTreeHostImplClient* client); | 120 LayerTreeHostImplClient* client); |
120 void DidLoseOutputSurface(); | 121 void DidLoseOutputSurface(); |
121 bool output_surface_lost() const { return output_surface_lost_; } | 122 bool output_surface_lost() const { return output_surface_lost_; } |
122 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } | 123 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } |
123 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } | 124 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } |
124 bool UpdateLayers(); | 125 bool UpdateLayers(); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 504 |
504 uint32_t surface_id_namespace_; | 505 uint32_t surface_id_namespace_; |
505 uint32_t next_surface_sequence_; | 506 uint32_t next_surface_sequence_; |
506 | 507 |
507 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 508 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
508 }; | 509 }; |
509 | 510 |
510 } // namespace cc | 511 } // namespace cc |
511 | 512 |
512 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 513 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |