| 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 113 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
| 114 LayerTreeHostImplClient* client); | 114 LayerTreeHostImplClient* client); |
| 115 void DidLoseOutputSurface(); | 115 void DidLoseOutputSurface(); |
| 116 bool output_surface_lost() const { return output_surface_lost_; } | 116 bool output_surface_lost() const { return output_surface_lost_; } |
| 117 enum CreateResult { | 117 enum CreateResult { |
| 118 CreateSucceeded, | 118 CreateSucceeded, |
| 119 CreateFailedButTryAgain, | 119 CreateFailedButTryAgain, |
| 120 CreateFailedAndGaveUp, | 120 CreateFailedAndGaveUp, |
| 121 }; | 121 }; |
| 122 CreateResult OnCreateAndInitializeOutputSurfaceAttempted(bool success); | 122 CreateResult OnCreateAndInitializeOutputSurfaceAttempted(bool success); |
| 123 void DidUpdateCapabilities(); |
| 123 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } | 124 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } |
| 124 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } | 125 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } |
| 125 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); | 126 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); |
| 126 virtual void AcquireLayerTextures(); | 127 virtual void AcquireLayerTextures(); |
| 127 // Returns false if we should abort this frame due to initialization failure. | 128 // Returns false if we should abort this frame due to initialization failure. |
| 128 bool InitializeOutputSurfaceIfNeeded(); | 129 bool InitializeOutputSurfaceIfNeeded(); |
| 129 void UpdateLayers(ResourceUpdateQueue* queue, | 130 void UpdateLayers(ResourceUpdateQueue* queue, |
| 130 size_t contents_memory_limit_bytes); | 131 size_t contents_memory_limit_bytes); |
| 131 | 132 |
| 132 LayerTreeHostClient* client() { return client_; } | 133 LayerTreeHostClient* client() { return client_; } |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 bool in_paint_layer_contents_; | 342 bool in_paint_layer_contents_; |
| 342 | 343 |
| 343 LatencyInfo latency_info_; | 344 LatencyInfo latency_info_; |
| 344 | 345 |
| 345 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 346 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 346 }; | 347 }; |
| 347 | 348 |
| 348 } // namespace cc | 349 } // namespace cc |
| 349 | 350 |
| 350 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 351 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |