Chromium Code Reviews| 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> GetOutputSurface(); | |
|
no sievers
2015/09/10 00:00:22
nit: Can we call it ReleaseOutputSurface()?
sohanjg
2015/09/10 15:07:23
Done.
| |
| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 | 501 |
| 501 uint32_t surface_id_namespace_; | 502 uint32_t surface_id_namespace_; |
| 502 uint32_t next_surface_sequence_; | 503 uint32_t next_surface_sequence_; |
| 503 | 504 |
| 504 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 505 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 505 }; | 506 }; |
| 506 | 507 |
| 507 } // namespace cc | 508 } // namespace cc |
| 508 | 509 |
| 509 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 510 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |