| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 enum CreateResult { | 124 enum CreateResult { |
| 125 CreateSucceeded, | 125 CreateSucceeded, |
| 126 CreateFailedButTryAgain, | 126 CreateFailedButTryAgain, |
| 127 CreateFailedAndGaveUp, | 127 CreateFailedAndGaveUp, |
| 128 }; | 128 }; |
| 129 virtual CreateResult OnCreateAndInitializeOutputSurfaceAttempted( | 129 virtual CreateResult OnCreateAndInitializeOutputSurfaceAttempted( |
| 130 bool success); | 130 bool success); |
| 131 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } | 131 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } |
| 132 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } | 132 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } |
| 133 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); | 133 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); |
| 134 virtual void AcquireLayerTextures(); | |
| 135 // Returns false if we should abort this frame due to initialization failure. | 134 // Returns false if we should abort this frame due to initialization failure. |
| 136 bool InitializeOutputSurfaceIfNeeded(); | 135 bool InitializeOutputSurfaceIfNeeded(); |
| 137 bool UpdateLayers(ResourceUpdateQueue* queue); | 136 bool UpdateLayers(ResourceUpdateQueue* queue); |
| 138 | 137 |
| 139 LayerTreeHostClient* client() { return client_; } | 138 LayerTreeHostClient* client() { return client_; } |
| 140 const base::WeakPtr<InputHandler>& GetInputHandler() { | 139 const base::WeakPtr<InputHandler>& GetInputHandler() { |
| 141 return input_handler_weak_ptr_; | 140 return input_handler_weak_ptr_; |
| 142 } | 141 } |
| 143 | 142 |
| 144 void NotifyInputThrottledUntilCommit(); | 143 void NotifyInputThrottledUntilCommit(); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 453 |
| 455 ScopedPtrVector<SwapPromise> swap_promise_list_; | 454 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 456 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 457 | 456 |
| 458 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 459 }; | 458 }; |
| 460 | 459 |
| 461 } // namespace cc | 460 } // namespace cc |
| 462 | 461 |
| 463 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 462 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |