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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 126 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
127 LayerTreeHostImplClient* client); | 127 LayerTreeHostImplClient* client); |
128 void DidLoseOutputSurface(); | 128 void DidLoseOutputSurface(); |
129 bool output_surface_lost() const { return output_surface_lost_; } | 129 bool output_surface_lost() const { return output_surface_lost_; } |
130 virtual void OnCreateAndInitializeOutputSurfaceAttempted(bool success); | 130 virtual void OnCreateAndInitializeOutputSurfaceAttempted(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 bool UpdateLayers(ResourceUpdateQueue* queue); | 134 bool UpdateLayers(ResourceUpdateQueue* queue); |
135 | 135 |
136 // Called when the compositor completed page scale animation, but before a | |
137 // commit. | |
138 void DidCompletePageScaleAnimationBeforeCommit(); | |
139 | |
136 LayerTreeHostClient* client() { return client_; } | 140 LayerTreeHostClient* client() { return client_; } |
137 const base::WeakPtr<InputHandler>& GetInputHandler() { | 141 const base::WeakPtr<InputHandler>& GetInputHandler() { |
138 return input_handler_weak_ptr_; | 142 return input_handler_weak_ptr_; |
139 } | 143 } |
140 | 144 |
141 void NotifyInputThrottledUntilCommit(); | 145 void NotifyInputThrottledUntilCommit(); |
142 | 146 |
143 void Composite(base::TimeTicks frame_begin_time); | 147 void Composite(base::TimeTicks frame_begin_time); |
144 | 148 |
145 void FinishAllRendering(); | 149 void FinishAllRendering(); |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
469 | 473 |
470 SharedBitmapManager* shared_bitmap_manager_; | 474 SharedBitmapManager* shared_bitmap_manager_; |
471 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 475 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
472 | 476 |
473 ScopedPtrVector<SwapPromise> swap_promise_list_; | 477 ScopedPtrVector<SwapPromise> swap_promise_list_; |
474 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 478 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
475 | 479 |
476 uint32_t surface_id_namespace_; | 480 uint32_t surface_id_namespace_; |
477 uint32_t next_surface_sequence_; | 481 uint32_t next_surface_sequence_; |
478 | 482 |
483 // If set, then page scale animation has completed, but not committed yet. | |
aelias_OOO_until_Jul13
2014/11/22 03:38:11
A page scale animation isn't explicitly involved i
please use gerrit instead
2014/11/24 20:22:31
Done.
| |
484 bool did_complete_scale_animation_before_commit_; | |
aelias_OOO_until_Jul13
2014/11/22 03:38:11
Please move this next to "pending_page_scale_anima
please use gerrit instead
2014/11/24 20:22:31
Done.
| |
485 | |
479 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
480 }; | 487 }; |
481 | 488 |
482 } // namespace cc | 489 } // namespace cc |
483 | 490 |
484 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 491 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |